-
Notifications
You must be signed in to change notification settings - Fork 344
122 lines (117 loc) · 4.55 KB
/
autobuild.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: 打包
on:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: echo (node -p -e '`VERSION=${require("./package.json").version}`') >> $Env:GITHUB_ENV
- run: npm install
- run: npm run package
- uses: maotoumao/inno-setup-action-cli@main
with:
filepath: ./release/build-windows.iss
variables: /DMyAppVersion=${{ env.VERSION }} /DMyAppId=${{ secrets.MYAPPID }}
- name: Upload Setup
uses: actions/upload-artifact@v4
with:
name: windows-release
path: ./out/MusicFreeSetup.exe
- name: Generate Portable
run: mkdir ./out/MusicFree-win32-x64/portable
- uses: vimtor/[email protected]
with:
files: ./out/MusicFree-win32-x64
dest: MusicFree-win32-x64-portable.zip
- name: Upload Portable
uses: actions/upload-artifact@v4
with:
name: windows-portable-release
path: ${{ github.workspace }}/MusicFree-win32-x64-portable.zip
build-windows-legacy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: echo (node -p -e '`VERSION=${require("./package.json").version}`') >> $Env:GITHUB_ENV
- run: npm install
- run: npm install electron@22
- run: npm run package
- uses: maotoumao/inno-setup-action-cli@main
with:
filepath: ./release/build-windows.iss
variables: /DMyAppVersion=${{ env.VERSION }} /DMyAppId=${{ secrets.MYAPPID }}
- name: Upload Setup
uses: actions/upload-artifact@v4
with:
name: windows-legacy-release
path: ./out/MusicFreeSetup.exe
- name: Generate Portable
run: mkdir ./out/MusicFree-win32-x64/portable
- uses: vimtor/[email protected]
with:
files: ./out/MusicFree-win32-x64
dest: MusicFree-win32-x64-legacy-portable.zip
- name: Upload Portable
uses: actions/upload-artifact@v4
with:
name: windows-legacy-portable-release
path: ${{ github.workspace }}/MusicFree-win32-x64-legacy-portable.zip
build-macos-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/setup-node@v4
with:
node-version: 18
- run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- run: npm install
- run: npm run make
- run: ls ./out/make
- name: Upload Setup
uses: actions/upload-artifact@v4
with:
name: macos-x64-dmg-release
path: ./out/make/MusicFree-${{ env.VERSION }}-x64.dmg
build-macos-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/setup-node@v4
with:
node-version: 18
- run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- run: npm install
- run: npm run make -- --arch="arm64"
- name: Upload Setup
uses: actions/upload-artifact@v4
with:
name: macos-arm64-dmg-release
path: ./out/make/MusicFree-${{ env.VERSION }}-arm64.dmg
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- run: npm install
- run: npm run make
- name: Upload Setup
uses: actions/upload-artifact@v4
with:
name: ubuntu-release
path: ./out/make/deb/x64/