From 46e3a7b2c07c72cae0f1bcc5f383e793fa169517 Mon Sep 17 00:00:00 2001 From: Table Date: Sat, 29 Nov 2025 04:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Makefile=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20VERSION=20=E5=80=BC=E4=B8=BA=E4=BB=8E=20git=20tag?= =?UTF-8?q?=20=E4=B8=AD=E8=AF=BB=E5=8F=96,=E5=8D=B3=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=9A=84=20git=20tag=20=E5=80=BC,=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=B8=BA=2020251129.1=E3=80=8120251129.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6586b3a..9f3ef64 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # 变量定义 APP_NAME := yinli-api -VERSION := 1.0.0 +VERSION := $(shell git tag --sort=-version:refname | head -n 1 2>/dev/null || echo "1.0.0") BUILD_DIR := build DOCKER_DIR := docker DOC_DIR := doc