Skip to content

Commit 8f1d467

Browse files
committed
v0.1.8 测试构建
1 parent 79bf92a commit 8f1d467

File tree

4 files changed

+86
-51
lines changed

4 files changed

+86
-51
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build for Linux
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
tags:
7+
- "v*.*.*"
8+
9+
env:
10+
GH_TOKEN:
11+
${{ secrets.GH_TOKEN }}
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
node-version: [20.x]
21+
artifacts: [./dist/*.deb, ./dist/*.rpm, ./dist/*.AppImage]
22+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'yarn'
31+
- run: yarn install
32+
- run: yarn run build --linux
33+
- name: Release build
34+
uses: HEPTAhu/[email protected]
35+
with:
36+
body: "Full changelog: <https://github.com/User782Tec/Desktop-icon-tools/commits/${{ github.ref_name }}>"
37+
name: ${{ github.ref_name }}
38+
tag_name: ${{ github.ref_name }}
39+
path: ${{ matrix.artifacts }}
40+
token: ${{ secrets.GH_TOKEN }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build for Windows
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
tags:
7+
- "v*.*.*"
8+
9+
10+
env:
11+
GH_TOKEN:
12+
${{ secrets.GH_TOKEN }}
13+
14+
jobs:
15+
build:
16+
17+
runs-on: windows-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: [20.x]
22+
artifacts: [./dist/*.exe, ./dist/*.msi]
23+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: 'yarn'
32+
- run: yarn global add electron-builder
33+
- run: yarn install
34+
- run: yarn run build --windows
35+
- name: Release build
36+
uses: HEPTAhu/[email protected]
37+
with:
38+
body: "Full changelog: <https://github.com/NB-Group/NB_Music/commits/${{ github.ref_name }}>"
39+
name: ${{ github.ref_name }}
40+
tag_name: ${{ github.ref_name }}
41+
path: ${{ matrix.artifacts }}
42+
token: ${{ secrets.GH_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"win": {
3939
"icon": "./icons/icon.ico",
4040
"target": [
41-
"nsis",
42-
"zip"
41+
"msi",
42+
"exe"
4343
]
4444
},
4545
"mac": {
@@ -53,7 +53,8 @@
5353
"icon": "./icons/icon.png",
5454
"target": [
5555
"AppImage",
56-
"deb"
56+
"deb",
57+
"rpm"
5758
],
5859
"category": "AudioVideo"
5960
},

0 commit comments

Comments
 (0)