#!/bin/sh # Build the wallet for the browser with TinyGo. # # This is the deployment build: the page loads this wasm, so it must compile with TinyGo and not # merely with Go. The channel worker is built from the nostrino repo. # # GO=/path/to/go1.24.6 ./scripts/build-wasm.sh # set -eu export GOROOT=${GOROOT:-/home/mleku/sdk/go1.24.6} export PATH=$GOROOT/bin:$PATH tinygo build -target wasm -o bin/web/tinywallet.wasm ./cmd/tinywallet-wasm echo "tinygo test: transaction and script packages" tinygo test -target wasm ./pkg/tx ./pkg/script