Allow building debug profile from WASM build script
This commit is contained in:
parent
e324036530
commit
57d9b27551
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#cargo build --lib --target wasm32-unknown-unknown $@ && /home/runassudo/.cargo/bin/wasm-bindgen --target no-modules target/wasm32-unknown-unknown/debug/opentally.wasm --out-dir html --no-typescript
|
PROFILE=${1:-release}
|
||||||
cargo build --lib --target wasm32-unknown-unknown --release && /home/runassudo/.cargo/bin/wasm-bindgen --target no-modules target/wasm32-unknown-unknown/release/opentally.wasm --out-dir html --no-typescript
|
cargo build --lib --target wasm32-unknown-unknown --$PROFILE && /home/runassudo/.cargo/bin/wasm-bindgen --target no-modules target/wasm32-unknown-unknown/$PROFILE/opentally.wasm --out-dir html --no-typescript
|
||||||
|
Loading…
Reference in New Issue
Block a user