From 59a26fd4d2cdaadda1f314632e743dfa3b78d46e Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Tue, 9 Jan 2024 19:46:16 -0800 Subject: [PATCH] nitpick build script --- client/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 client/build.sh diff --git a/client/build.sh b/client/build.sh old mode 100644 new mode 100755 index 7caf25b..e1b1ff4 --- a/client/build.sh +++ b/client/build.sh @@ -1,7 +1,10 @@ -set -e +#!/usr/bin/env bash +set -euo pipefail +shopt -s inherit_errexit + rm -rf out/ || true mkdir out/ -cargo build --target wasm32-unknown-unknown -r +cargo build --target wasm32-unknown-unknown --release wasm-bindgen --weak-refs --no-typescript --target no-modules --out-dir out/ ../target/wasm32-unknown-unknown/release/wstcp_client.wasm cp -r src/web/* out/ (cd out; python3 -m http.server)