From acd22ac3f2740d075806845805a5b26490ca4c3b Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 15:46:06 +0100 Subject: 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. --- crates/wipfel/build-release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/wipfel/build-release.sh') 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/" -- cgit v1.2.3