@@ -21,6 +21,7 @@ jobs:
|
||||
|
||||
- name: 安装Go(镜像)
|
||||
run: |
|
||||
sh -x
|
||||
echo "正在检查 Go 语言最新版本..."
|
||||
LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n 1)
|
||||
if [ -z "$LATEST_GO_VERSION" ]; then
|
||||
@@ -42,16 +43,15 @@ jobs:
|
||||
with:
|
||||
node-version-file: 'frontend/package.json'
|
||||
|
||||
# - name: 安装MinGW-w64
|
||||
# run: |
|
||||
# apt update
|
||||
# apt install -y mingw-w64
|
||||
# x86_64-w64-mingw32-gcc --version
|
||||
- name: 安装构建工具
|
||||
run: |
|
||||
sh -x
|
||||
npm install -g pnpm
|
||||
go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
|
||||
- name: 构建上传工具
|
||||
run: |
|
||||
npm install -g pnpm
|
||||
go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
sh -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