jsb-gravity/build-wasm.sh
2024-01-03 22:24:53 +01:00

3 lines
222 B
Bash

cargo build --release --target wasm32-unknown-unknown || exit 1
echo "==> wasm-bindgen..."
wasm-bindgen --out-name jsb-gravity --out-dir target --target web target/wasm32-unknown-unknown/release/jsb-gravity.wasm || exit 1