-
Notifications
You must be signed in to change notification settings - Fork 168
49 lines (40 loc) · 1.17 KB
/
dev.yml
File metadata and controls
49 lines (40 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: DEV Test Build
on:
push:
branches:
- master
jobs:
build:
permissions:
contents: write
runs-on: windows-latest
steps:
- name: 拉取仓库
uses: actions/checkout@v4
- name: 安装 UPX
uses: crazy-max/ghaction-upx@v4
with:
install-only: true
- name: 安装 Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: 安装 Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
- name: 安装 Wails CLI
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: 获取版本
shell: powershell
run: |
$wailsJson = Get-Content wails.json | ConvertFrom-Json
$version = $wailsJson.info.productVersion
echo "PACKAGE_VERSION=$version" >> $env:GITHUB_ENV
- name: 编译
run: wails build -o "Onekey_v${{ env.PACKAGE_VERSION }}.exe" -upx -skipbindings
- name: 上传包
uses: actions/upload-artifact@v4
with:
name: Onekey_v${{ env.PACKAGE_VERSION }}.exe
path: build/bin/Onekey_v${{ env.PACKAGE_VERSION }}.exe