0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-05-31 19:49:00 +02:00
dendrite/build-dendritejs.sh
Felix Hanley 41c0b5acfb
Update build script to run on any POSIX (#1577)
Signed-off-by: Felix Hanley <felix@userspace.com.au>
2020-11-16 10:09:53 +00:00

5 lines
162 B
Bash
Executable file

#!/bin/sh -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