fix: 构建文件的版本动态获取
This commit is contained in:
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@ OUTPUT := ./bin/$(APP_NAME).exe
|
|||||||
GO := go
|
GO := go
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
VERSION := 1.0.1
|
VERSION := $(shell git describe --tags --abbrev=0)
|
||||||
GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo none)
|
GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo none)
|
||||||
BUILD_TIME := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
BUILD_TIME := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user