Remove everything and add stub Go module

This commit is contained in:
Tulir Asokan
2024-03-24 00:29:54 +02:00
parent 8bd5a4e367
commit 043cb7f854
121 changed files with 192 additions and 19308 deletions
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/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 "$@"