forked from Linnas/RNAi-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
67 lines (63 loc) · 2.49 KB
/
vue.config.js
File metadata and controls
67 lines (63 loc) · 2.49 KB
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
module.exports = {
lintOnSave: false,
runtimeCompiler:true,
transpileDependencies: [
'vuetify'
],
pluginOptions: {
electronBuilder: {
preload: 'src/preload.js',
builderOptions: {
"extraResources": [{"from": "./rnai",
"to" : "./rnai"}],
"appId": "com.example.app",
"productName":"RNAi",//项目名,也是生成的安装文件名,即aDemo.exe
"copyright":"Copyright © 2020",//版权信息
"directories":{
"output":"./dist_electron"//输出文件路径
},
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"mac": {
"icon": "mac_dna.icns"
},
"win":{//win相关配置
"icon":"./DNA.ico",//图标,当前图标在根目录下,注意这里有两个坑
"requestedExecutionLevel": "highestAvailable",
"target": [
{
"target": "nsis",//利用nsis制作安装程序
"arch": [
"x64"//64位
]
}
]
},
"nsis": {
"oneClick": false, // 是否一键安装
"allowElevation": true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
"allowToChangeInstallationDirectory": true, // 允许修改安装目录
"installerIcon": "./DNA.ico",// 安装图标
"installerHeaderIcon": "./DNA.ico", // 安装时头部图标
"createDesktopShortcut": true, // 创建桌面图标
"createStartMenuShortcut": true,// 创建开始菜单图标
"shortcutName": "RNAi", // 图标名称
"runAfterFinish": false, //禁止安装完成即启动
},
}
}
},
}