-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvue.config.js
45 lines (43 loc) · 1.37 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
const path = require('path');
module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackMainProcess: chainWebpackMainProcess,
externals: ['sqlite3'],
mainProcessWatch: ['src/**/*.ts', 'src/**/*.vue'],
builderOptions: {
productName: "Timenaut",
appId: "app.timenaut.timenaut",
afterSign: "build/afterSignHook.js",
linux: {
category: "Utility",
icon: "build/icons/",
target: ["AppImage"]
},
mac: {
hardenedRuntime: true,
entitlements: "build/timenaut.entitlements"
},
fileAssociations: [
{
ext: "icon",
icon: "icons/"
}
],
snap: {
confinement: "classic",
environment: {
"TMPDIR": "$XDG_RUNTIME_DIR"
}
},
publish: {
provider: "generic",
url: "https://timenaut.app/updates"
}
}
}
}
};
function chainWebpackMainProcess(config) {
config.resolve.alias.set('@', path.join(__dirname, 'src'))
}