-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
38 lines (38 loc) · 1.15 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
module.exports = {
pluginOptions: {
electronBuilder: {
// 自定义协议,同时需要修改background.js中的load
customFileProtocol: 'myapp://./',
// build参数
builderOptions: {
appId: 'com.myapp',
productName: 'myapp Desc',
electronDownload: {
mirror: "https://npm.taobao.org/mirrors/electron/"
},
electronVersion: "12.0.10",
dmg: {
contents: [
{
x: 410,
y: 150,
type: "link",
path: "/Applications"
},
{
x: 130,
y: 150,
type: "file"
}
]
},
mac: {
icon: "build_static/icon.icns"
},
win: {
icon: "build_static/icon.ico"
}
}
}
}
}