Skip to content

Commit 6946b25

Browse files
committed
fix build arch
1 parent 51e9af1 commit 6946b25

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ jobs:
2323
- name: Build for all platforms
2424
run: npm run build && npm run mac
2525

26-
- name: Upload dmg
26+
- name: Upload exe
2727
uses: actions/upload-artifact@v4
2828
with:
29-
name: macOS
30-
path: dist/*.dmg
29+
name: app-windows
30+
path: dist/*.exe
3131

32-
- name: Upload exe
32+
- name: Upload dmg
3333
uses: actions/upload-artifact@v4
3434
with:
35-
name: windows
36-
path: dist/*.exe
35+
name: app-macOS
36+
path: dist/*.dmg
3737

3838
- name: Upload AppImage
3939
uses: actions/upload-artifact@v4
4040
with:
41-
name: linux
41+
name: app-linux
4242
path: dist/*.AppImage

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@
1111
"build": {
1212
"appId": "dev.colbster937.webmcdesktop",
1313
"productName": "WebMC",
14+
"artifactName": "${productName}-${version}-${arch}.${ext}",
1415
"publish": null,
1516
"files": [
1617
"**/*"
1718
],
1819
"mac": {
19-
"target": "dmg"
20+
"target": "dmg",
21+
"arch": ["universal"]
2022
},
2123
"win": {
22-
"target": "nsis"
24+
"target": "nsis",
25+
"arch": ["x64"]
2326
},
2427
"linux": {
25-
"target": "AppImage"
28+
"target": "AppImage",
29+
"arch": ["x64"]
2630
}
2731
},
2832
"keywords": [],

0 commit comments

Comments
 (0)