path=$(realpath "$(dirname "$0")") || exit 1 rm -rf "$path"/../public mkdir -p "$path"/../public/static/wasm || exit 1 GOOS=js GOARCH=wasm go build -o "$path"/../public/static/wasm/app.wasm "$path"/wasm/app.go || exit 1 GOOS=js GOARCH=wasm go build -o "$path"/../public/static/wasm/login.wasm "$path"/wasm/login.go || exit 1 GOOS=js GOARCH=wasm go build -o "$path"/../public/static/wasm/signup.wasm "$path"/wasm/signup.go || exit 1 cp -r "$path"/resources/* "$path"/../public/ || exit 1