-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
44 lines (43 loc) · 1.25 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
/*
* @Description: Vue configuration
* @Version: 1.0.8.20220304
* @Author: Arvin Zhao
* @Date: 2021-12-09 00:57:09
* @Last Editors: Arvin Zhao
* @LastEditTime: 2022-03-04 20:11:48
*/
module.exports = {
configureWebpack: {
devtool: "source-map",
},
pluginOptions: {
electronBuilder: {
builderOptions: {
appId: "com.isarvin.kobe",
artifactName: "${name}_${version}_${os}_${arch}.${ext}",
generateUpdatesFilesForAllChannels: true,
mac: {
category: "public.app-category.utilities",
target: [
{
arch: ["arm64", "x64"],
target: "default", // Squirrel.Mac requires the zip target. Reference: https://www.electron.build/auto-update#quick-setup-guide
},
],
},
nsis: {
allowToChangeInstallationDirectory: true,
createDesktopShortcut: "always",
installerLanguages: "zh_CN",
language: "2052",
oneClick: false,
perMachine: true,
runAfterFinish: false,
},
win: { verifyUpdateCodeSignature: false },
},
preload: "./src/preload.js",
},
}, // Reference: https://www.electron.build/configuration/configuration
runtimeCompiler: true,
};