Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit a29b87d

Browse files
committed
Use ditto instead of zip. It has a better output experience (eg. it unzips straight to the .xcframework directory - no path mangling required)
1 parent 8ceb052 commit a29b87d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Sources/CreateXCFramework/Zipper.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ struct Zipper {
5757

5858
private func zipCommand (source: Foundation.URL, target: Foundation.URL) -> [String] {
5959
return [
60-
"zip",
61-
"-r",
62-
"-q",
63-
target.path,
64-
source.path
60+
"ditto",
61+
"-c",
62+
"-k",
63+
"--keepParent",
64+
source.path,
65+
target.path
6566
]
6667
}
6768

0 commit comments

Comments
 (0)