This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvue.config.js
103 lines (102 loc) · 2.57 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Components = require('unplugin-vue-components/webpack')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')
module.exports = {
productionSourceMap: false,
configureWebpack: {
plugins: [
Components({
resolvers: [ElementPlusResolver()]
})
]
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
disableMainProcessTypescript: false,
mainProcessTypeChecking: false,
productName: 'RedisFish',
appId: 'com.kuari.RedisFish',
copyright: '© Kuari 2022',
afterSign: 'build/notarize.js',
publish: [
{
provider: 'github',
owner: 'Kuari',
repo: 'RedisFish',
releaseType: 'draft'
}
],
nsis: {
oneClick: false,
allowElevation: true,
allowToChangeInstallationDirectory: true,
installerIcon: 'build/icon.ico',
uninstallerIcon: 'build/icon.ico',
installerHeaderIcon: 'build/icon.ico',
createDesktopShortcut: true,
createStartMenuShortcut: true,
shortcutName: 'RedisFish'
},
dmg: {
contents: [
{
x: 410,
y: 150,
type: 'link',
path: '/Applications'
},
{
x: 130,
y: 150,
type: 'file'
}
]
},
mas: {
icon: 'build/icon.icns',
hardenedRuntime: true,
entitlements: 'electron-builder/entitlements.mas.plist',
entitlementsInherit: 'electron-builder/entitlements.mas.plist'
},
mac: {
target: [
{
target: 'dmg',
arch: 'universal'
},
{
target: 'zip',
arch: 'universal'
}
],
icon: 'build/icon.icns',
hardenedRuntime: true,
entitlements: 'electron-builder/entitlements.plist',
entitlementsInherit: 'electron-builder/entitlements.plist',
provisioningProfile: 'electron-builder/comalibabaslobs.provisionprofile'
},
win: {
icon: 'build/icon.ico',
target: [
{
target: 'nsis'
}
]
},
linux: {
icon: 'build/icon.ico'
}
},
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableLegacy: false,
runtimeOnly: false,
compositionOnly: false,
fullInstall: true
}
}
}