-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
51 lines (51 loc) · 1.5 KB
/
Copy pathvue.config.js
File metadata and controls
51 lines (51 loc) · 1.5 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
module.exports = {
// pages: {
// index: 'src/main.ts',
// MobilePreview: 'src/mobilePreview.js',
// },
configureWebpack: {
// Configuration applied to all builds
node: {
fs: 'empty',
module: 'empty',
},
},
pluginOptions: {
electronBuilder: {
builderOptions: {
// options placed here will be merged with default configuration and passed to electron-builder
// build: {
appId: 'com.mofang.app',
productName: 'MoFang',
publish: [
{
provider: 'generic',
url: `${process.env.VUE_APP_SERVER_URL}/`,
},
],
mac: {
target: 'dmg',
artifactName: '${productName}.${ext}', //eslint-disable-line
darkModeSupport: true,
},
win: {
artifactName: '${productName}.${ext}', //eslint-disable-line
target: [
{
target: 'nsis', // 我们要的目标安装包
},
],
},
nsis: {
oneClick: false, // 是否一键安装
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
allowToChangeInstallationDirectory: true, // 允许修改安装目录
createDesktopShortcut: true, // 创建桌面图标
createStartMenuShortcut: true, // 创建开始菜单图标
shortcutName: '魔方', // 图标名称
},
// },
},
},
},
};