From 57d9b275516e45313ee65dd9f589e674047c3407 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sun, 13 Jun 2021 16:34:27 +1000 Subject: [PATCH] Allow building debug profile from WASM build script --- build_wasm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_wasm.sh b/build_wasm.sh index bad0ed5..0b43028 100755 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -1,3 +1,3 @@ #!/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 -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 +PROFILE=${1:-release} +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