mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
Bake in git commit into dendritejs binary (#1048)
This commit is contained in:
parent
8b3100935c
commit
5faecdac82
2 changed files with 7 additions and 1 deletions
4
build-dendritejs.sh
Executable file
4
build-dendritejs.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue