We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42caffd commit 680e26cCopy full SHA for 680e26c
build.sh
@@ -1,4 +1,4 @@
1
#!/bin/sh
2
MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }')
3
GO_LDFLAGS="-s -w -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'"
4
-go build -ldflags="$GO_LDFLAGS" ./cmd/mautrix-whatsapp "$@"
+go build -ldflags="$GO_LDFLAGS" "$@" ./cmd/mautrix-whatsapp
0 commit comments