fix(build): 修复构建工具配置问题
构建上传工具 / build-tool (push) Successful in 5m54s

This commit is contained in:
2026-04-27 12:54:07 +08:00
parent f4c9228b2a
commit 68564b7b80
+7 -7
View File
@@ -21,6 +21,7 @@ jobs:
- name: 安装Go(镜像) - name: 安装Go(镜像)
run: | run: |
sh -x
echo "正在检查 Go 语言最新版本..." echo "正在检查 Go 语言最新版本..."
LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n 1) LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n 1)
if [ -z "$LATEST_GO_VERSION" ]; then if [ -z "$LATEST_GO_VERSION" ]; then
@@ -42,16 +43,15 @@ jobs:
with: with:
node-version-file: 'frontend/package.json' node-version-file: 'frontend/package.json'
# - name: 安装MinGW-w64 - name: 安装构建工具
# run: | run: |
# apt update sh -x
# apt install -y mingw-w64 npm install -g pnpm
# x86_64-w64-mingw32-gcc --version go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: 构建上传工具 - name: 构建上传工具
run: | run: |
npm install -g pnpm sh -x
go install github.com/wailsapp/wails/v2/cmd/wails@latest
wails build \ wails build \
-platform windows/amd64 \ -platform windows/amd64 \
-ldflags "-X 'main.version=$(TZ=Asia/Shanghai date +"%m%d%H%M")'" \ -ldflags "-X 'main.version=$(TZ=Asia/Shanghai date +"%m%d%H%M")'" \