This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
vue.config.js
92 lines (84 loc) · 2.28 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
module.exports = {
lintOnSave: process.env.NODE_ENV === 'production',
css: {
loaderOptions: {
scss: {
prependData: '@import "~@/variables.scss";',
},
},
},
chainWebpack: config => {
// required for 'native-ext-loader'
config.node.set('__dirname', true)
config
.output
.globalObject('(typeof self !== "undefined" ? self : this)')
config.module
.rule('node')
.test(/\.node$/)
.use('native-ext-loader')
.loader('native-ext-loader')
.end()
config.module
.rule('worker')
.test(/\.worker\.js$/i)
.use('worker-loader')
.loader('worker-loader')
.end()
config.resolve.extensions.prepend('.node')
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
chainWebpackMainProcess: config => {
config.module
.rule('node')
.test(/\.node$/)
.use('native-ext-loader')
.loader('native-ext-loader')
.end()
config.resolve.extensions.add('.js').add('.node')
},
builderOptions: {
appId: process.env.VUE_APP_IS_SETAPP === 'true'
? 'com.ueberdosis.glyphfinder-setapp'
: 'com.glyphfinder.app',
artifactName: '${productName}-${version}-${os}.${ext}', // eslint-disable-line
afterSign: 'electron-builder-notarize',
productName: 'Glyphfinder',
mac: {
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: 'build/entitlements.mac.plist',
entitlementsInherit: 'build/entitlements.mac.plist',
extendInfo: {
NSUserNotificationAlertStyle: 'alert',
},
publish: [
{
provider: 'spaces',
name: 'ueber',
region: 'fra1',
channel: 'latest',
path: '/glyphfinder/mac',
acl: 'public-read',
},
],
},
win: {
publisherName: 'überdosis GbR',
publish: [
{
provider: 'spaces',
name: 'ueber',
region: 'fra1',
channel: 'latest',
path: '/glyphfinder/win',
acl: 'public-read',
},
],
},
},
},
},
}