mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
nitpick build script
This commit is contained in:
parent
a03cad21f8
commit
59a26fd4d2
1 changed files with 5 additions and 2 deletions
7
client/build.sh
Normal file → Executable file
7
client/build.sh
Normal file → Executable file
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue