-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.js
More file actions
38 lines (30 loc) · 871 Bytes
/
electron-builder.js
File metadata and controls
38 lines (30 loc) · 871 Bytes
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
37
38
const { APP_CONFIG } = require('./app.config')
const { NAME, AUTHOR, TITLE, DESCRIPTION, FOLDERS } = APP_CONFIG
const CURRENT_YEAR = new Date().getFullYear()
const AUTHOR_IN_KEBAB_CASE = AUTHOR.name.replace(/\s+/g, '-')
const APP_ID = `com.${AUTHOR_IN_KEBAB_CASE}.${NAME}`.toLowerCase()
module.exports = {
appId: APP_ID,
productName: TITLE,
copyright: `Copyright © ${CURRENT_YEAR} — ${AUTHOR.name}`,
directories: {
app: FOLDERS.DEV_TEMP_BUILD,
output: 'dist',
},
mac: {
icon: `${FOLDERS.RESOURCES}/icons/icon.icns`,
category: 'public.app-category.utilities',
},
dmg: {
icon: false,
},
linux: {
category: 'Utilities',
synopsis: DESCRIPTION,
target: ['AppImage', 'deb', 'pacman', 'freebsd', 'rpm'],
},
win: {
icon: `${FOLDERS.RESOURCES}/icons/icon.ico`,
target: ['nsis', 'portable', 'zip'],
},
}