mirror of
https://github.com/storytold/spark.git
synced 2026-10-18 07:40:38 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const { execSync } = await import("node:child_process");
|
||||
const { platform } = await import("node:os");
|
||||
|
||||
const isWindows = platform() === "win32";
|
||||
|
||||
try {
|
||||
if (isWindows) {
|
||||
const output = execSync(
|
||||
"powershell.exe -ExecutionPolicy Bypass -File ./rust/build_rust_wasm.ps1",
|
||||
{ stdio: "inherit" },
|
||||
);
|
||||
} else {
|
||||
execSync("rust/build_rust_wasm.sh", { stdio: "inherit" });
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("Failed to build RUST WASM:", err.message);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user