mirror of
https://github.com/mautrix/telegram.git
synced 2026-05-17 07:25:46 +03:00
5 lines
390 B
Bash
Executable File
5 lines
390 B
Bash
Executable File
#!/bin/sh
|
|
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" -o mautrix-telegram "$@"
|