mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
build.sh: add build script
This commit is contained in:
parent
cf56cd24aa
commit
a4d1a7feeb
1 changed files with 4 additions and 0 deletions
4
build.sh
Executable file
4
build.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
go generate ./web
|
||||||
|
export MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | head -n1 | awk '{ print $2 }')
|
||||||
|
go build -ldflags "-X main.Tag=$(git describe --exact-match --tags 2>/dev/null) -X main.Commit=$(git rev-parse HEAD) -X 'main.BuildTime=`date -Iseconds`' -X 'maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION'" "$@" || exit 2
|
Loading…
Add table
Reference in a new issue