forked from chuyik/electron-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
56 lines (46 loc) · 1.24 KB
/
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
var path = require('path')
var root = path.join(__dirname, '..')
var config = {
// root directory
root: root,
// plugins directory
pluginsPath: path.join(root, 'plugins'),
// a flag to whether the app is running in development mode
isDev: process.env.NODE_ENV === 'development',
// name of the main window
mainAppName: 'main-window'
}
/**
* Please refer to
* `https://github.com/atom/electron/blob/master/docs%2Fapi%2Fbrowser-window.md#new-browserwindowoptions`
* for windows configurations.
*/
config.windows = {
'main-window': {
width: 800,
height: 600,
show: true, // Show window, default: true
showDevtools: true // Show devtools, default: true (Only in development mode)
},
'prefs': {
width: 600,
height: 600,
show: false,
showDevtools: false,
frame: false // Show frame, default: true
}
}
/**
* Please refer to
* `https://github.com/atom/electron/blob/master/docs/api/crash-reporter.md`
* for crash reporter configuration.
*/
config.crashOpts = {
productName: 'YourName',
companyName: 'YourCompany',
submitUrl: 'https://your-domain.com/url-to-submit',
autoSubmit: false
}
// Share configs between multiple windows
global.shared = config
module.exports = config