-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
33 lines (26 loc) · 800 Bytes
/
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
'use strict'
const path = require('path')
let config = {
// Name of electron app
// Will be used in production builds
name: 'zhihu-daily-desktop',
// Use ESLint (extends `standard`)
// Further changes can be made in `.eslintrc.js`
eslint: true,
// webpack-dev-server port
port: 9080,
// electron-packager options
// Docs: https://simulatedgreg.gitbooks.io/electron-vue/content/docs/building_your_app.html
building: {
arch: 'x64',
asar: true,
dir: path.join(__dirname, 'app'),
icon: path.join(__dirname, 'app/icons/icon'),
ignore: /\b(node_modules|src|index\.ejs|icons)\b/,
out: path.join(__dirname, 'builds'),
overwrite: true,
platform: process.env.PLATFORM_TARGET || 'all'
}
}
config.building.name = config.name
module.exports = config