-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.js
36 lines (36 loc) · 1019 Bytes
/
electron-builder.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
appId: 'com.waspkeeperstudio',
productName: 'Waspkeeper Studio', // Change this to the name of your application
directories: {
output: 'release/' // Directory to put the packaged app
},
files: [
'dist/**/*', // Include all files from the dist directory
'package.json',
// '!node_modules/**/*.node'
],
// extraResources: [
// {
// from: 'node_modules/better-sqlite3',
// to: 'node_modules/better-sqlite3',
// filter: ["**/*.node"]
// }
// ],
asar: true, // Pack all files into an ASAR archive for better performance and to protect source codes
win: {
target: 'nsis', // Target packaging format for Windows
icon: 'icons/icon.ico'
},
mac: {
target: 'dmg',
icon: 'icons/icon.icns'
},
linux: {
target: 'AppImage',
icon: 'icons'
},
nsis: {
oneClick: false, // Require the user to confirm the installation
allowToChangeInstallationDirectory: true // Allow user to select installation directory
}
};