From 59a76335613b836312f03a539e61c00a09b0962d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 17 Oct 2023 03:26:58 +0100 Subject: initial commit --- build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ae7e042 --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#!/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 . + +[ "$1" = "serve" ] && gopherjs serve + -- cgit v1.2.1