mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
refactor: ♻️ Git command safe directory removed from build.sh
This commit is contained in:
parent
7dfce5ed21
commit
017b3f6c39
1 changed files with 0 additions and 2 deletions
2
build.sh
2
build.sh
|
@ -1,6 +1,4 @@
|
|||
#!/bin/sh
|
||||
# Git config to use /build as safe directory.
|
||||
git config --global --add safe.directory /build
|
||||
MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }')
|
||||
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'"
|
||||
go build -ldflags="$GO_LDFLAGS" ./cmd/mautrix-whatsapp "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue