-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvue.config.js
53 lines (53 loc) · 1.01 KB
/
vue.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
module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
externals: ['serialport'],
builderOptions: {
productName: '串口调试助手',
win: {
icon: 'public/icon.ico',
artifactName: '${productName}-${version}.${ext}',
target: [
{
target: 'nsis',
arch: ['x64']
}
]
},
dmg: {
contents: [
{
x: 410,
y: 150,
type: 'link',
path: '/Applications'
},
{
x: 130,
y: 150,
type: 'file'
}
]
},
linux: {
icon: 'build/electron-icon/icon.png',
target: 'AppImage'
},
mac: {
icon: 'build/electron-icon/icon.icns'
},
nsis: {
oneClick: false,
allowElevation: true,
allowToChangeInstallationDirectory: true,
installerIcon: 'public/icon.ico',
uninstallerIcon: 'public/icon.ico',
installerHeaderIcon: 'public/icon.ico',
createDesktopShortcut: true,
createStartMenuShortcut: true
}
}
}
}
};