mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-07 07:15:45 -06:00
ci: prepare proper build script, move script into /scripts, move index.html into /assets
This commit is contained in:
11
scripts/build-wasm.sh
Normal file
11
scripts/build-wasm.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -eux
|
||||
|
||||
cargo build --target=wasm32-unknown-emscripten --release
|
||||
|
||||
mkdir -p dist
|
||||
|
||||
cp target/wasm32-unknown-emscripten/release/pacman.wasm dist
|
||||
cp target/wasm32-unknown-emscripten/release/pacman.js dist
|
||||
cp target/wasm32-unknown-emscripten/release/deps/pacman.data dist/deps
|
||||
cp assets/index.html dist
|
||||
Reference in New Issue
Block a user