forked from mpfast/TaroCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
64 lines (64 loc) · 1.65 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
module.exports = {
productionSourceMap: false,
transpileDependencies: ['vuetify'],
pluginOptions: {
electronBuilder: {
builderOptions: {
publish: ['github'],
appId: 'taro.creator.app',
productName: 'TaroCreator',
copyright: 'Copyright © 2020 深圳之了网络科技有限公司',
directories: {
output: './dist' // 输出文件路径
},
win: {
// win相关配置
icon: './appicon/icon.png',
target: [
{
target: 'nsis', // 利用nsis制作安装程序
arch: ['x64']
}
]
},
nsis: {
oneClick: false,
allowElevation: true,
allowToChangeInstallationDirectory: true,
installerIcon: './appicon/icon.ico',
uninstallerIcon: './appicon/icon.ico',
installerHeaderIcon: './appicon/icon.ico',
createDesktopShortcut: true,
createStartMenuShortcut: true,
shortcutName: 'TaroCreator',
artifactName: 'TaroCreator-${version}.${ext}'
},
mac: {
target: 'dmg',
icon: './appicon/icon.icns'
},
dmg: {
title: 'TaroCreator',
icon: './appicon/icon.icns',
contents: [
{
x: 180,
y: 220
},
{
x: 360,
y: 220,
type: 'link',
path: '/Applications'
}
],
artifactName: 'TaroCreator-${version}.${ext}',
window: {
x: 400,
y: 100
}
}
}
}
}
}