Skip to content

Commit

Permalink
build: fix passing arguments to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 4, 2025
1 parent 2542522 commit ceba1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if [[ -z "$LIBRARY_PATH" && -d /opt/homebrew ]]; then
fi
export MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }')
export 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 '+%b %_d %Y, %H:%M:%S'`' -X 'maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION'"
go build -ldflags "$GO_LDFLAGS" ./cmd/mautrix-meta "$@"
go build -ldflags "$GO_LDFLAGS" "$@" ./cmd/mautrix-meta

0 comments on commit ceba1f3

Please sign in to comment.