@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
- name: 安装Go(镜像)
|
||||
run: |
|
||||
sh -x
|
||||
set -x
|
||||
echo "正在检查 Go 语言最新版本..."
|
||||
LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n 1)
|
||||
if [ -z "$LATEST_GO_VERSION" ]; then
|
||||
@@ -45,13 +45,13 @@ jobs:
|
||||
|
||||
- name: 安装构建工具
|
||||
run: |
|
||||
sh -x
|
||||
set -x
|
||||
npm install -g pnpm
|
||||
go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
|
||||
- name: 构建上传工具
|
||||
run: |
|
||||
sh -x
|
||||
set -x
|
||||
wails build \
|
||||
-platform windows/amd64 \
|
||||
-ldflags "-X 'main.version=$(TZ=Asia/Shanghai date +"%m%d%H%M")'" \
|
||||
|
||||
Reference in New Issue
Block a user