From 0bd662ad15de96b6cbd95cbca03bd481ec2e9a66 Mon Sep 17 00:00:00 2001 From: "Jiaxiao (mossaka) Zhou" Date: Thu, 19 Feb 2026 22:39:48 +0000 Subject: [PATCH] Bundle WASM release assets into versioned tar.gz archive wasm_exec.js MUST match the Go version used to compile gh-aw.wasm, so ship them together as a single archive instead of as separate top-level release assets. This follows the convention used by esbuild-wasm, sql.js, and other projects that distribute WASM binaries. The release will now contain `gh-aw-wasm-.tar.gz` in place of the individual `gh-aw.wasm` and `wasm_exec.js` files. Checksums automatically cover the archive. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/build-release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build-release.sh b/scripts/build-release.sh index 2dec7dd688a..f7a7a4997e0 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -88,6 +88,15 @@ fi cp "$WASM_EXEC_SRC" dist/wasm_exec.js echo "Bundled wasm_exec.js from $WASM_EXEC_SRC" +# Create WASM bundle archive +echo "Creating WASM bundle archive..." +tar -czf "dist/gh-aw-wasm-${VERSION}.tar.gz" -C dist gh-aw.wasm wasm_exec.js + +# Remove individual WASM files from dist (they're now in the archive) +rm dist/gh-aw.wasm dist/wasm_exec.js + +echo "✓ Created dist/gh-aw-wasm-${VERSION}.tar.gz" + echo "" echo "Build complete. Binaries:" ls -lh dist/