fix(build): 修复版本号链接参数格式问题

- 修正了 ldflags 中版本号格式导致的编译错误
- 移除了版本字符串中的意外空格
- 确保版本号正确传递给主程序包变量
This commit is contained in:
2026-04-28 15:08:21 +08:00
parent 7f0e4fe607
commit 1cac9e9013
+1 -1
View File
@@ -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: 上传构建文件