change version format

This commit is contained in:
Jason
2019-07-16 17:14:23 +08:00
parent a04356526f
commit 407e64bb7b

View File

@@ -1,7 +1,7 @@
NAME=tun2socks
BUILDDIR=$(shell pwd)/build
CMDDIR=$(shell pwd)/cmd/tun2socks
VERSION=$(shell git describe --tags || echo "unknown version")
VERSION=$(shell git describe --tags --long || echo "unknown version")
BUILDTIME=$(shell date -u)
BUILD_TAGS='socks fakedns d stats'
BUILD_LDFLAGS='-s -w -X "main.version=$(VERSION)" -X "main.buildTime=$(BUILDTIME)"'