mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2026-03-01 16:48:22 +00:00
fix: Add checksum to release tag and fix zip invocation
Fix zip creation so the bundle is archived with the bundle root rather than its full path. Use a standardized zip path, set Process.currentDirectoryURL to the bundle's parent, and pass the bundle basename to /usr/bin/zip.
This commit is contained in:
parent
9be0695c55
commit
f9024a8cd7
2 changed files with 10 additions and 10 deletions
|
|
@ -21,9 +21,15 @@ extension ArtifactBundleBuilder {
|
|||
try fileManager.removeItem(atPath: zipPath)
|
||||
}
|
||||
|
||||
let bundleDirURL = URL(fileURLWithPath: bundleDir)
|
||||
let workDirURL = bundleDirURL.deletingLastPathComponent()
|
||||
let bundleName = bundleDirURL.lastPathComponent
|
||||
|
||||
let process = Process()
|
||||
process.executableURL = URL(fileURLWithPath: "/usr/bin/zip")
|
||||
process.arguments = ["-r", zipPath, bundleDir]
|
||||
let zipPathURL = URL(fileURLWithPath: zipPath).standardizedFileURL
|
||||
process.arguments = ["-r", zipPathURL.path, bundleName]
|
||||
process.currentDirectoryURL = workDirURL
|
||||
|
||||
try process.run()
|
||||
process.waitUntilExit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue