diff options
author | Kegsay <kegan@matrix.org> | 2020-05-19 16:42:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 16:42:30 +0100 |
commit | 5faecdac828592b6cf9d2851e13af8fb6d1df30a (patch) | |
tree | 646c1c7b80ff59ba0dacbd8fb124cc2b6f8b2fe2 /build-dendritejs.sh | |
parent | 8b3100935ccc2efec67b26251176c2f8b6ad2be2 (diff) |
Bake in git commit into dendritejs binary (#1048)
Diffstat (limited to 'build-dendritejs.sh')
-rwxr-xr-x | build-dendritejs.sh | 4 |
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 |