Skip to content

Commit c048e92

Browse files
committed
Update build script.
1 parent 85bdf03 commit c048e92

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "Finton <finton@finton.cc>",
88
"scripts": {
99
"start": "electron .",
10-
"build": "electron-builder",
10+
"build": "electron-builder --mac --win --linux --x64 --arm64",
1111
"pack": "electron-builder --dir"
1212
},
1313
"devDependencies": {
@@ -29,11 +29,24 @@
2929
],
3030
"win": {
3131
"icon": "src/assets/favicon.png",
32-
"target": ["nsis", "portable"]
32+
"target": [
33+
{ "target": "nsis", "arch": ["x64", "arm64"] },
34+
{ "target": "portable", "arch": ["x64", "arm64"] }
35+
]
36+
},
37+
"nsis": {
38+
"artifactName": "${productName}-Windows-${arch}-${version}-Installer.${ext}"
39+
},
40+
"portable": {
41+
"artifactName": "${productName}-Windows-${arch}-${version}-Portable.${ext}"
3342
},
3443
"mac": {
3544
"icon": "src/assets/icon.png",
36-
"target": ["dmg", "zip"],
45+
"artifactName": "${productName}-macOS-${arch}-${version}.${ext}",
46+
"target": [
47+
{ "target": "dmg", "arch": ["x64", "arm64"] },
48+
{ "target": "zip", "arch": ["x64", "arm64"] }
49+
],
3750
"hardenedRuntime": true,
3851
"entitlements": "build/entitlements.mac.plist",
3952
"entitlementsInherit": "build/entitlements.mac.plist",
@@ -45,25 +58,12 @@
4558
},
4659
"linux": {
4760
"icon": "src/assets/favicon.png",
48-
"target": ["AppImage", "deb", "flatpak"],
61+
"artifactName": "${productName}-Linux-${arch}-${version}.${ext}",
62+
"target": [
63+
{ "target": "AppImage", "arch": ["x64", "arm64"] },
64+
{ "target": "deb", "arch": ["x64", "arm64"] }
65+
],
4966
"category": "Chat"
50-
},
51-
"flatpak": {
52-
"base": "org.electronjs.Electron2.BaseApp",
53-
"baseVersion": "24.08",
54-
"runtime": "org.freedesktop.Platform",
55-
"runtimeVersion": "24.08",
56-
"sdk": "org.freedesktop.Sdk",
57-
"finishArgs": [
58-
"--socket=wayland",
59-
"--socket=x11",
60-
"--share=ipc",
61-
"--device=dri",
62-
"--device=all",
63-
"--socket=pulseaudio",
64-
"--share=network",
65-
"--talk-name=org.freedesktop.Notifications"
66-
]
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)