-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
48 lines (48 loc) · 1.6 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
module.exports = {
pluginOptions: {
electronBuilder: {
externals: ["electron-log"],
nodeIntegration: false,
preload: "src/preload.js",
builderOptions: {
// afterPack: "./scripts/postbuild.js",
appId: "com.megasanjay.electronvueflask",
afterSign: "./scripts/notarize.js",
asar: true,
generateUpdatesFilesForAllChannels: true,
files: ["**/*", "!pyflask/", "!build/", "!api.spec"],
win: {
target: "nsis",
icon: "./src/assets/app-icons/windowsAppIcon.ico",
extraResources: [{ from: "./src/pyflaskdist/api.exe" }],
},
mac: {
target: ["dmg", "zip"],
// arch: ["x64", "arm64"],
icon: "./src/assets/app-icons/macAppIcon.png",
extraResources: [{ from: "./src/pyflaskdist/api" }],
darkModeSupport: false,
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: "./entitlements.mac.inherit.plist",
entitlementsInherit: "./entitlements.mac.inherit.plist",
},
linux: {
target: "AppImage",
icon: "./src/assets/app-icons/linuxAppIcon.png",
extraResources: [{ from: "./src/pyflaskdist/api" }],
},
nsis: {
createDesktopShortcut: "always",
oneClick: true,
deleteAppDataOnUninstall: true,
installerIcon: "./src/assets/app-icons/windowsAppIcon.ico",
},
publish: {
provider: "github",
repository: "https://github.com/megasanjay/electron-vue3-flask.git",
},
},
},
},
};