aboutsummaryrefslogtreecommitdiff
path: root/build-dendritejs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-dendritejs.sh')
-rwxr-xr-xbuild-dendritejs.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build-dendritejs.sh b/build-dendritejs.sh
new file mode 100755
index 00000000..cd42a6be
--- /dev/null
+++ b/build-dendritejs.sh
@@ -0,0 +1,4 @@
+#!/bin/bash -eu
+
+export GIT_COMMIT=$(git rev-list -1 HEAD) && \
+GOOS=js GOARCH=wasm go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -o main.wasm ./cmd/dendritejs \ No newline at end of file