fix(build): 修复版本号链接参数格式问题
- 修正了 ldflags 中版本号格式导致的编译错误 - 移除了版本字符串中的意外空格 - 确保版本号正确传递给主程序包变量
This commit is contained in:
@@ -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: 上传构建文件
|
||||
|
||||
Reference in New Issue
Block a user