Add macOS/Linux build targets and update CI for all platforms

This commit is contained in:
TuxMonkey
2026-08-03 21:10:55 +08:00
parent e54cffab3c
commit f670f03bbc
2 changed files with 66 additions and 16 deletions

View File

@@ -7,8 +7,10 @@
"scripts": {
"start": "electron .",
"dev": "electron . --dev",
"build": "electron-builder --win",
"build:portable": "electron-builder --win portable"
"build:win": "electron-builder --win",
"build:mac": "electron-builder --mac",
"build:linux": "electron-builder --linux",
"build:all": "electron-builder --win --mac --linux"
},
"build": {
"appId": "com.helix.git",
@@ -24,13 +26,26 @@
],
"win": {
"target": [
{
"target": "nsis",
"arch": ["x64"]
}
{ "target": "nsis", "arch": ["x64"] },
{ "target": "portable", "arch": ["x64"] }
],
"icon": null
},
"mac": {
"target": [
{ "target": "dmg", "arch": ["x64", "arm64"] }
],
"category": "public.app-category.developer-tools",
"icon": null
},
"linux": {
"target": [
{ "target": "AppImage", "arch": ["x64"] },
{ "target": "deb", "arch": ["x64"] }
],
"category": "Development",
"icon": null
},
"nsis": {
"oneClick": false,
"perMachine": false,