Fix warnings
- Commit
6420269bba8efcbad14761823f68bd8ec605c8f4- Author
- Kabir Oberai <[email protected]>
- When
- 2024-12-19 12:07 UTC (1 year ago)
- Parents
3066713
Diff
Sources/SupersignCLISupport/SupersignCLIDelegate.swift
diff --git a/Sources/SupersignCLISupport/SupersignCLIDelegate.swift b/Sources/SupersignCLISupport/SupersignCLIDelegate.swiftindex 7c23bad..e8adb46 100644--- a/Sources/SupersignCLISupport/SupersignCLIDelegate.swift+++ b/Sources/SupersignCLISupport/SupersignCLIDelegate.swift@@ -127,8 +127,8 @@ actor SupersignCLIDelegate: IntegratedInstallerDelegate { progress(nil) let unzip = Process()- unzip.launchPath = "/usr/bin/unzip"- unzip.arguments = ["-q", ipa.path, "-d", directory.path]+ unzip.executableURL = URL(fileURLWithPath: "/usr/bin/env")+ unzip.arguments = ["unzip", "-q", ipa.path, "-d", directory.path] try await unzip.launchAndWait() guard unzip.terminationStatus == 0 else { throw Error.decompressionFailed@@ -144,9 +144,9 @@ actor SupersignCLIDelegate: IntegratedInstallerDelegate { let dest = payloadDir.deletingLastPathComponent().appendingPathComponent("app.ipa") let zip = Process()- zip.launchPath = "/usr/bin/zip"- zip.currentDirectoryPath = payloadDir.deletingLastPathComponent().path- zip.arguments = ["-yqru0", dest.path, "Payload"]+ zip.executableURL = URL(fileURLWithPath: "/usr/bin/env")+ zip.currentDirectoryURL = payloadDir.deletingLastPathComponent()+ zip.arguments = ["zip", "-yqru0", dest.path, "Payload"] try await zip.launchAndWait() guard zip.terminationStatus == 0 else { throw Error.compressionFailed }