-
Notifications
You must be signed in to change notification settings - Fork 800
/
vue.config.js
72 lines (70 loc) · 1.74 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
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
css: {
loaderOptions: {
less: {
import: [
resolve('src/assets/styles/var.less'),
],
modifyVars: {
'btn-height-base': '30px',
'input-height-base': '30px',
},
javascriptEnabled: true,
},
},
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
productName: 'Gridea',
win: {
icon: './public/app-icons/gridea.ico',
// target: [
// {
// target: 'nsis',
// arch: [
// 'ia32',
// 'x64',
// ],
// },
// ],
},
mac: {
icon: './public/app-icons/gridea.icns',
},
linux: {
icon: './public/app-icons/gridea.png',
target: [
{
target: 'AppImage',
},
{
target: 'deb',
},
{
target: 'snap',
},
],
},
asar: false,
nsis: {
oneClick: false, // 是否一键安装
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
allowToChangeInstallationDirectory: true, // 允许修改安装目录
createDesktopShortcut: true, // 创建桌面图标
createStartMenuShortcut: true, // 创建开始菜单图标
shortcutName: 'Gridea', // 图标名称
},
publish: ['github'],
},
// mainProcessWatch: [
// 'src/server/**/*',
// ],
},
},
}