-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.electron-builder.config.js
51 lines (47 loc) · 1.08 KB
/
.electron-builder.config.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const PACKAGEJSON = JSON.parse(require('fs').readFileSync('./package.json').toString())
if (process.env.VITE_APP_VERSION === undefined) {
process.env.VITE_APP_VERSION = PACKAGEJSON.version;
}
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
const config = {
appId: 'com.electron.fukayo',
productName: 'Fukayo',
asar: false,
directories: {
output: 'dist',
buildResources: 'buildResources',
},
files: [
'packages/**/dist/**',
],
extraMetadata: {
version: process.env.VITE_APP_VERSION,
},
linux: {
target: "appImage",
synopsis: PACKAGEJSON.description,
category: 'AudioVideo',
icon: 'icon_256.png',
},
win: {
target: "nsis",
icon: 'icon_256.ico',
// legalTrademarks: undefined,
},
nsis: {
oneClick: true,
perMachine: false,
installerIcon: "icon_256.ico",
},
// mac: {
// category: 'public.app-category.utilities',
// target: 'dmg',
// icon: 'buildResources/icons/mac/icon.icns',
// },
// dmg: {
// }
};
module.exports = config;