From bf64735c903a2caec3d173fd0812e2a8be82ab02 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Thu, 20 Feb 2025 18:31:24 -0800 Subject: [PATCH 1/2] Use executableURL in build script --- Scripts/build.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/build.swift b/Scripts/build.swift index 2ecf6f2b..e3fb89d7 100755 --- a/Scripts/build.swift +++ b/Scripts/build.swift @@ -6,7 +6,7 @@ import Foundation func execute(commandPath: String, arguments: [String]) throws { let task = Process() - task.launchPath = commandPath + task.executableURL = .init(filePath: commandPath) task.arguments = arguments print("Launching command: \(commandPath) \(arguments.joined(separator: " "))") task.launch() From eb836eec4fa1fb53831a1be5fbc7e518bb985260 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 23 Feb 2025 09:32:21 -0800 Subject: [PATCH 2/2] launch() -> run() --- Scripts/build.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/build.swift b/Scripts/build.swift index e3fb89d7..80489e23 100755 --- a/Scripts/build.swift +++ b/Scripts/build.swift @@ -9,7 +9,7 @@ func execute(commandPath: String, arguments: [String]) throws { task.executableURL = .init(filePath: commandPath) task.arguments = arguments print("Launching command: \(commandPath) \(arguments.joined(separator: " "))") - task.launch() + try task.run() task.waitUntilExit() guard task.terminationStatus == 0 else { throw TaskError.code(task.terminationStatus)