forked from ai-shifu/ChatALL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
50 lines (49 loc) · 1.61 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
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: ["vuetify"],
pluginOptions: {
electronBuilder: {
builderOptions: {
// options placed here will be merged with default configuration and passed to electron-builder
appId: "ai.chatall",
productName: "ChatALL",
artifactName: "${productName}-${version}-${os}-${arch}.${ext}",
directories: {
buildResources: "src/assets",
},
mac: {
category: "public.app-category.utilities",
target: "default",
icon: "src/assets/icon.icns",
hardenedRuntime: true,
notarize: {
teamId: "M4934264PN",
},
},
win: {
target: [
{
target: "nsis",
arch: ["ia32"],
},
],
icon: "src/assets/icon.ico",
},
linux: {
target: ["AppImage", "deb"],
icon: "src/assets/icon.png",
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
},
},
/**
* work around to fix this issue: https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/1647#issuecomment-1019400838
* some resources is defined by url in css file can't be loaded on production build (urls start with app:///)
* docs of package related to this issue: https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/configuration.html#changing-the-file-loading-protocol
* */
customFileProtocol: "./",
},
},
});