From 1cac9e90138a7c715772b39ea6db525d27dcf892 Mon Sep 17 00:00:00 2001 From: YGXB_net Date: Tue, 28 Apr 2026 15:08:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20=E4=BF=AE=E5=A4=8D=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E9=93=BE=E6=8E=A5=E5=8F=82=E6=95=B0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正了 ldflags 中版本号格式导致的编译错误 - 移除了版本字符串中的意外空格 - 确保版本号正确传递给主程序包变量 --- .gitea/workflows/build_tool.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build_tool.yaml b/.gitea/workflows/build_tool.yaml index 757ae74..1e2ecfa 100644 --- a/.gitea/workflows/build_tool.yaml +++ b/.gitea/workflows/build_tool.yaml @@ -56,7 +56,7 @@ jobs: build_date=$(TZ=Asia/Shanghai date +"%Y%m%d%H%M") wails build \ -platform windows/amd64 \ - -ldflags "-X 'main.version=$build_date-$git_hash'" \ + -ldflags "-X 'main.version= $build_date - $git_hash'" \ -o 上传工具.exe - name: 上传构建文件