From: Bernie Innocenti Date: Sun, 7 May 2017 16:25:46 +0000 (-0400) Subject: Asmjs doc fixes. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0fd399ff858d7a264503fa0533140df9a20e4bc4;p=mandelwow.git Asmjs doc fixes. --- diff --git a/README.md b/README.md index 56b6c19..83e0648 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Install cargo, then simply type: cargo run --release ``` -### asm.js +### WebAssembly / asm.js Install emsdk 1.36.14: @@ -47,7 +47,7 @@ Build and run mandelwow: ``` cd mandelwow -./release.sh +./release_asmjs.sh ``` Build the WebAssembly binary: diff --git a/debug.sh b/debug.sh deleted file mode 100755 index cb4f144..0000000 --- a/debug.sh +++ /dev/null @@ -1,5 +0,0 @@ -set -e -cargo rustc --target asmjs-unknown-emscripten -- -C link-args='-s USE_SDL=2 --preload-file flora.xm' -cp -a target/asmjs-unknown-emscripten/debug/mandelwow.js . -cp -a target/asmjs-unknown-emscripten/debug/deps/mandelwow-*.data . -emrun . diff --git a/debug_wasm.sh b/debug_wasm.sh new file mode 100755 index 0000000..cb4f144 --- /dev/null +++ b/debug_wasm.sh @@ -0,0 +1,5 @@ +set -e +cargo rustc --target asmjs-unknown-emscripten -- -C link-args='-s USE_SDL=2 --preload-file flora.xm' +cp -a target/asmjs-unknown-emscripten/debug/mandelwow.js . +cp -a target/asmjs-unknown-emscripten/debug/deps/mandelwow-*.data . +emrun .