-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
vue.config.js
88 lines (87 loc) · 1.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const { VUE_APP_NAME, VUE_APP_SLUG, VUE_APP_ID } = process.env
module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
customFileProtocol: 'ghapp://./',
// customFileProtocol: './',
externals: ['dugite'],
builderOptions: {
// publish: false,
publish: {
"provider": "github",
"private": true
},
productName: VUE_APP_NAME,
appId: VUE_APP_ID,
artifactName: '${name}-${version}-${arch}.${ext}',
protocols: [
{
name: VUE_APP_NAME,
role: 'Viewer',
schemes: [
VUE_APP_SLUG,
]
},
{
name: VUE_APP_ID,
schemes: [
'github-windows',
'github-mac',
'sourcetree',
'ghapp',
]
}
],
mac: {
category: 'public.app-category.developer-tools',
icon: 'static/icons/icon.icns',
extendInfo: {
CFBundleURLSchemes: [
VUE_APP_SLUG,
'github-windows',
'github-mac',
'sourcetree',
'ghapp',
]
}
},
dmg: {
contents: [
{
x: 410,
y: 150,
type: 'link',
path: '/Applications'
},
{
x: 130,
y: 150,
type: 'file'
}
]
},
win: {
target: [
'7z',
'nsis',
'portable',
'msi',
// 'appx',
]
},
portable: {
artifactName: '${name}-${version}-${arch}-portable.${ext}',
},
linux: {
category: 'Development',
target: [
'AppImage',
'snap',
'deb'
]
},
}
}
}
}