-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
76 lines (74 loc) · 2.29 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
module.exports = {
"transpileDependencies": [
"vuetify"
],
chainWebpack: config => {
config.module
.rule("i18n")
.resourceQuery(/blockType=i18n/)
.type('javascript/auto')
.use("i18n")
.loader("@intlify/vue-i18n-loader")
.end();
},
pluginOptions: {
electronBuilder: {
// List native deps here if they don't work
externals: ['serialport'],
// If you are using Yarn Workspaces, you may have multiple node_modules folders
// List them all here so that VCP Electron Builder can find them
// nodeModulesPath: ['../../node_modules', './node_modules']
nodeIntegration: true,
builderOptions: {
// options placed here will be merged with default configuration and passed to electron-builder
'appId': 'cc.seeed.sensecap.tools.hub',
'productName': 'SenseCAP Sensor Hub Configuration Tool',
'copyright': 'Copyright ©2008-2020 Seeed Technology Co.,Ltd.',
'nsis': {
'installerIcon': 'build/icon.ico',
'installerHeader': 'build/icon.png',
'installerHeaderIcon': 'build/icon.ico',
'oneClick': false,
'allowToChangeInstallationDirectory': true,
'runAfterFinish': false
},
'win': {
'verifyUpdateCodeSignature': false,
'target': ['nsis', 'portable'],
'icon': 'build/icon.ico',
},
'dmg': {
'title': 'SenseCAP Sensor Hub Configuration Tool',
'icon': 'build/icon.png',
'contents': [
{
'x': 100,
'y': 200
},
{
'x': 400,
'y': 200,
'type': 'link',
'path': '/Applications'
}
],
},
'mac': {
'category': 'public.app-category.developer-tools',
'target': 'default',
'icon': 'build/icon.png',
"hardenedRuntime" : true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist"
},
"afterSign": "scripts/notarize.js",
"linux": {
"target": ["AppImage", "deb"],
"icon": "build/iconset"
},
"publish": "github"
}
}
}
}