build itchio wasm script

This commit is contained in:
Pascal Engélibert 2022-08-27 18:56:54 +02:00
commit 1a30718c9d
Signed by: tuxmain
GPG key ID: 3504BC6D362F7DCA
9 changed files with 63 additions and 28 deletions

12
build-itchio.sh Normal file
View file

@ -0,0 +1,12 @@
sh build-wasm.sh || exit 1
mkdir -p target/itchio/wasm/target
mkdir -p target/itchio/wasm/assets
cp assets/* target/itchio/wasm/assets/
cp index.html target/itchio/wasm/
cp target/lux-synthese.js target/itchio/wasm/target/
cp target/lux-synthese_bg.wasm target/itchio/wasm/target/
cd target/itchio/wasm
zip -r ../wasm.zip .