blob: d057c907aafadbecf79995c929aa65b0a8349c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
name=pengui
rm -rf build
mkdir -p build
cd build
env GOOS=js GOARCH=wasm go build -o $name.wasm ..
cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
cp ../index.html .
cp -r ../assets .
[ "$1" = "serve" ] && gopherjs serve
|