forked from makepad/makepad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
watch_example_webgl.sh
executable file
·22 lines (20 loc) · 2.45 KB
/
watch_example_webgl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cargo-watch watch -x 'build --target=wasm32-unknown-unknown --release --manifest-path="./example_webgl/Cargo.toml"' \
#-s'cp ./example_webgl/target/wasm32-unknown-unknown/debug/example_webgl.wasm ./example_webgl/debug/wasm32-unknown-unknown/release/example_webgl.webassembly.html' \
#-s'../wabt/bin/wasm-strip ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly.html'
#cargo-watch watch -x 'build --target=wasm32-unknown-unknown --release --manifest-path="./example_webgl/Cargo.toml"' \
#-s'cp ./example_webgl/target/wasm32-unknown-unknown/release/example_webgl.wasm ./example_webgl/target/wasm32-unknown-unknown/release/example_webgl.webassembly.html' \
#-s'../wabt/bin/wasm-strip ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly.html'
#-s'rm ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly.html.br' \
#-s'../brotli/out/brotli ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly.html' \
#-s'ls -al ./webgl/target/wasm32-unknown-unknown/release/|grep makepad_webgl.webassembly.html' \
#-s'echo "Zipped size:";gzip -9 < ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly.html|wc -c' \
#-s'twiggy top -n 20 ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly.html'
#-s'../binaryen/bin/wasm-opt -all -Oz -o ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.wasm ' \
#-s'cp ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.wasm ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly' \
#buggy.
#-s'../binaryen/bin/wasm-opt -all -Oz -o ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.wasm ' \
#-s'ls -al ./webgl/target/wasm32-unknown-unknown/release/|grep makepad_webgl.webassembly' \
#-s'echo "Running Wasm opt..."'\
#-s'cp ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.wasm ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly' \
#-s 'cp ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.wasm ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly' \
#cargo-watch watch -x 'build --target=wasm32-unknown-unknown --manifest-path="./webgl/Cargo.toml"' -s 'cp ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.wasm ./webgl/target/wasm32-unknown-unknown/release/makepad_webgl.webassembly' -s 'node ./build_index.js'