mirror of
https://github.com/ApfelTeeSaft/LiveSplitOne.git
synced 2026-08-26 19:23:40 +00:00
Use execSync instead of spawnSync in buildCore
This commit is contained in:
+7
-19
@@ -1,36 +1,24 @@
|
||||
const { spawnSync } = require("child_process");
|
||||
const { execSync } = require("child_process");
|
||||
const fs = require("fs");
|
||||
|
||||
spawnSync(
|
||||
"cargo",
|
||||
["run"],
|
||||
execSync(
|
||||
"cargo run",
|
||||
{
|
||||
cwd: "livesplit-core/capi/bind_gen",
|
||||
stdio: "inherit",
|
||||
},
|
||||
);
|
||||
|
||||
spawnSync(
|
||||
"cargo",
|
||||
[
|
||||
"build",
|
||||
"-p", "cdylib",
|
||||
"--features", "wasm-web",
|
||||
"--target", "wasm32-unknown-unknown",
|
||||
"--release",
|
||||
],
|
||||
execSync(
|
||||
"cargo build -p cdylib --features wasm-web --target wasm32-unknown-unknown --release",
|
||||
{
|
||||
cwd: "livesplit-core",
|
||||
stdio: "inherit",
|
||||
},
|
||||
);
|
||||
|
||||
spawnSync(
|
||||
"wasm-bindgen",
|
||||
[
|
||||
"livesplit-core/target/wasm32-unknown-unknown/release/livesplit_core.wasm",
|
||||
"--out-dir", "src/livesplit-core",
|
||||
],
|
||||
execSync(
|
||||
"wasm-bindgen livesplit-core/target/wasm32-unknown-unknown/release/livesplit_core.wasm --out-dir src/livesplit-core",
|
||||
{
|
||||
stdio: "inherit",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user