Add main.Version

This commit is contained in:
2023-04-05 11:17:07 -04:00
parent 347823b0bd
commit 2aa043b5fc
3 changed files with 17 additions and 2 deletions

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
VERSION = $(shell git describe --tags --abbrev=0)
build_release:
CGO_ENABLED=0 go build -buildmode=pie -ldflags "-X main.version=$(VERSION)" -o tglistbot-$(VERSION)
release_check:
go list -m go.balki.me/tglistbot@$(VERSION)