forked from willnewii/qiniuClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
34 lines (27 loc) · 948 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
34
'use strict'
const path = require('path');
const pkg = require('./package.json');
let config = {
// Name of electron app
// Will be used in production builds
name: pkg.cnname,
// webpack-dev-server port
port: 9080,
// electron-packager options
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md
// Docs: https://simulatedgreg.gitbooks.io/electron-vue/content/docs/building_your_app.html
building: {
name: pkg.cnname,
productName: pkg.cnname,
arch: 'x64',
asar: false,
dir: path.join(__dirname, 'app'),
icon: path.join(__dirname, 'app/icons/icon'),
ignore: /(^\/(src|test|\.[a-z]+|README|yarn|static|dist\/web))|\.gitkeep/,
out: path.join(__dirname, 'builds'),
overwrite: true,
platform: process.env.PLATFORM_TARGET || 'all'
}
};
config.building.name = config.name;
module.exports = config;