|
7 | 7 | "author": "Finton <finton@finton.cc>", |
8 | 8 | "scripts": { |
9 | 9 | "start": "electron .", |
10 | | - "build": "electron-builder", |
| 10 | + "build": "electron-builder --mac --win --linux --x64 --arm64", |
11 | 11 | "pack": "electron-builder --dir" |
12 | 12 | }, |
13 | 13 | "devDependencies": { |
|
29 | 29 | ], |
30 | 30 | "win": { |
31 | 31 | "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}" |
33 | 42 | }, |
34 | 43 | "mac": { |
35 | 44 | "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 | + ], |
37 | 50 | "hardenedRuntime": true, |
38 | 51 | "entitlements": "build/entitlements.mac.plist", |
39 | 52 | "entitlementsInherit": "build/entitlements.mac.plist", |
|
45 | 58 | }, |
46 | 59 | "linux": { |
47 | 60 | "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 | + ], |
49 | 66 | "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 | | - ] |
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
0 commit comments