mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2026-03-01 08:38:23 +00:00
fix: Zip bundle directory instead of parent dir
This commit is contained in:
parent
f9024a8cd7
commit
8032cfa0b2
1 changed files with 2 additions and 4 deletions
|
|
@ -22,14 +22,12 @@ extension ArtifactBundleBuilder {
|
|||
}
|
||||
|
||||
let bundleDirURL = URL(fileURLWithPath: bundleDir)
|
||||
let workDirURL = bundleDirURL.deletingLastPathComponent()
|
||||
let bundleName = bundleDirURL.lastPathComponent
|
||||
|
||||
let process = Process()
|
||||
process.executableURL = URL(fileURLWithPath: "/usr/bin/zip")
|
||||
let zipPathURL = URL(fileURLWithPath: zipPath).standardizedFileURL
|
||||
process.arguments = ["-r", zipPathURL.path, bundleName]
|
||||
process.currentDirectoryURL = workDirURL
|
||||
process.arguments = ["-r", zipPathURL.path, "."]
|
||||
process.currentDirectoryURL = bundleDirURL
|
||||
|
||||
try process.run()
|
||||
process.waitUntilExit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue