fix: zip path finding

This commit is contained in:
Shibo Lyu 2026-01-20 22:25:18 +08:00
parent b2f310dd20
commit 9be0695c55

View file

@ -21,12 +21,9 @@ extension ArtifactBundleBuilder {
try fileManager.removeItem(atPath: zipPath)
}
let bundleDirURL = URL(fileURLWithPath: bundleDir)
let bundleName = bundleDirURL.lastPathComponent
let process = Process()
process.executableURL = URL(fileURLWithPath: "/usr/bin/zip")
process.arguments = ["-r", zipPath, bundleName]
process.arguments = ["-r", zipPath, bundleDir]
try process.run()
process.waitUntilExit()