mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2026-03-01 16:48:22 +00:00
fix: zip path finding
This commit is contained in:
parent
b2f310dd20
commit
9be0695c55
1 changed files with 1 additions and 4 deletions
|
|
@ -21,12 +21,9 @@ extension ArtifactBundleBuilder {
|
||||||
try fileManager.removeItem(atPath: zipPath)
|
try fileManager.removeItem(atPath: zipPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
let bundleDirURL = URL(fileURLWithPath: bundleDir)
|
|
||||||
let bundleName = bundleDirURL.lastPathComponent
|
|
||||||
|
|
||||||
let process = Process()
|
let process = Process()
|
||||||
process.executableURL = URL(fileURLWithPath: "/usr/bin/zip")
|
process.executableURL = URL(fileURLWithPath: "/usr/bin/zip")
|
||||||
process.arguments = ["-r", zipPath, bundleName]
|
process.arguments = ["-r", zipPath, bundleDir]
|
||||||
|
|
||||||
try process.run()
|
try process.run()
|
||||||
process.waitUntilExit()
|
process.waitUntilExit()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue