diff --git a/src-tauri/copy-proxy-binary.mjs b/src-tauri/copy-proxy-binary.mjs index 2b8428a..83fdc7f 100644 --- a/src-tauri/copy-proxy-binary.mjs +++ b/src-tauri/copy-proxy-binary.mjs @@ -1,4 +1,4 @@ -import { execSync } from "node:child_process"; +import { execSync, execFileSync } from "node:child_process"; import { copyFileSync, existsSync, mkdirSync } from "node:fs"; import { join, dirname } from "node:path"; import { fileURLToPath } from "node:url"; @@ -61,7 +61,7 @@ function copyBinary(baseName) { buildArgs.push("--target", TARGET); } - execSync(`cargo ${buildArgs.join(" ")}`, { + execFileSync("cargo", buildArgs, { cwd: MANIFEST_DIR, stdio: "inherit", });