add file which helps releases

This commit is contained in:
2021-08-24 13:57:30 +03:00
parent 6dd7678e64
commit d3dc675d07
2 changed files with 33 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ GOOSARCHS = $(sort \
windows/amd64/.exe \
windows/arm64/.exe)
VSN = $(shell git describe --dirty)
VSN ?= $(shell git describe --dirty)
VSNHASH = $(shell git rev-parse --verify HEAD)
LDFLAGS = -ldflags "-X main.Version=$(VSN) -X main.VersionHash=$(VSNHASH)"