diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 15:46:06 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 15:48:58 +0100 |
| commit | acd22ac3f2740d075806845805a5b26490ca4c3b (patch) | |
| tree | 93d798604ba626882f7fa05b0691e857f3fc104e /crates | |
| parent | beeba1a1da4e7abff0de2cc6420fb5bae580861c (diff) | |
web: commit built static site under dist/wipfel/
The flpsed.org site is generated statically; keeping the deployable
bundle in the tree lets the site pipeline pick it up directly.
Regenerate with crates/wipfel/build-release.sh.
Diffstat (limited to 'crates')
| -rwxr-xr-x | crates/wipfel/build-release.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/wipfel/build-release.sh b/crates/wipfel/build-release.sh index 0bec70f..1ee09b7 100755 --- a/crates/wipfel/build-release.sh +++ b/crates/wipfel/build-release.sh @@ -5,11 +5,14 @@ # path on any static server. set -e cd "$(dirname "$0")/../.." -cargo build -p wipfel --target wasm32-unknown-unknown --release +# size-optimized build for the web (the workspace default profile +# targets native binaries); --remove-name-section drops the debug +# symbol names wasm-bindgen adds for devtools +CARGO_PROFILE_RELEASE_OPT_LEVEL=z cargo build -p wipfel --target wasm32-unknown-unknown --release DIST=dist/wipfel rm -rf "$DIST" mkdir -p "$DIST" -wasm-bindgen --target web --out-dir "$DIST" target/wasm32-unknown-unknown/release/wipfel.wasm +wasm-bindgen --remove-name-section --target web --out-dir "$DIST" target/wasm32-unknown-unknown/release/wipfel.wasm # the loader page (not the trunk entry point, which is dev-only) rm -f "$DIST"/wipfel.d.ts "$DIST"/wipfel_bg.wasm.d.ts cp crates/wipfel/www/index.html crates/wipfel/www/style.css "$DIST/" |
