forked from oslabs-beta/next-sketch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-build.config.js
65 lines (65 loc) · 1.44 KB
/
electron-build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
productName: 'NextSketch',
appId: 'com.NextSketch|electron.app',
directories: {
output: 'dist-electron', //where buildt application files will be output, same as main in package.json
buildResources: ['server', 'images'], //additional resources
app: 'src', //main code is located
},
asar: true, //enble asar package
files: [
'dist-electron/**/*', // Include main process files
'images/**/*',
'server/**/*', // Include additional resources
'package.json',
],
build: {
mac: {
icon: 'images/nslogo.png',
category: 'public.app-category.productivity',
target: {
target: 'default',
arch: ['x64', 'arm64'],
},
},
dmg: {
sign: false,
background: null,
backgroundColor: '#FFFFFF',
window: {
width: '400',
height: '300',
},
contents: [
{
x: 100,
y: 100,
},
{
x: 300,
y: 100,
type: 'link',
path: '/Applications',
},
],
},
win: {
icon: 'images/nslogo.ico',
target: [
{
target: '--windows',
arch: ['x64'],
},
],
},
linux: {
icon: 'images/nslogo.png',
target: ['deb', 'rpm', 'snap', 'AppImage'],
},
extraResources: [
'node_modules/@fortawesome/**/*',
'node_modules/prismjs/**/*',
'node_modules/@mui/**/*',
],
},
};