fix: 构建文件的版本动态获取

This commit is contained in:
2025-12-22 14:26:20 +08:00
parent e94151cec5
commit 19899e0a70

View File

@@ -4,7 +4,7 @@ OUTPUT := ./bin/$(APP_NAME).exe
GO := go
# 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)
BUILD_TIME := $(shell date -u +%Y-%m-%dT%H:%M:%SZ)