refactor: cleanup copy script

This commit is contained in:
zhom
2026-02-15 14:50:54 +04:00
parent ecf6d57f5a
commit d94c30fb9b
+2 -2
View File
@@ -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",
});