-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.js
108 lines (106 loc) · 2.92 KB
/
forge.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
const path = require('path');
require('dotenv').config();
module.exports = {
packagerConfig: {
asar: true,
icon: './src/assets/homey-white.png',
name: 'Desktop Device',
// no idea why but maker-squirrel does not like desktop-device
executableName: process.platform === 'win32' ? undefined : 'desktop-device',
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
/**
* A URL to an ICO file to use as the application icon
* (displayed in Control Panel > Programs and Features).
* Defaults to the Atom icon.
*/
iconUrl: path.resolve('src/assets/homey-white.ico'),
setupIcon: path.resolve('src/assets/homey-white.ico'),
/**
* Windows Application Model ID (appId).
* Defaults to the name field in your app's package.json file.
*/
name: 'DesktopDevice',
},
},
// {
// name: '@electron-forge/maker-zip',
// platforms: ['darwin'],
// },
{
name: '@electron-forge/maker-deb',
config: {
icon: path.resolve('src/assets/[email protected]'),
bin: 'desktop-device',
name: 'desktop-device',
productName: 'Desktop Device',
},
},
{
name: '@electron-forge/maker-rpm',
config: {
icon: path.resolve('src/assets/[email protected]'),
bin: 'desktop-device',
name: 'desktop-device',
productName: 'Desktop Device',
},
},
{
name: '@electron-forge/maker-dmg',
config: {
icon: path.resolve('src/assets/homey-white.icns'),
name: 'Desktop Device',
overwrite: true,
},
},
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
authToken: process.env.GITHUB_TOKEN,
repository: {
owner: 'jeroenwienk',
name: 'homey-desktop-device',
},
draft: true,
},
},
],
plugins: [
{
name: '@electron-forge/plugin-webpack',
config: {
mainConfig: './webpack/webpack.main.config.js',
renderer: {
nodeIntegration: true,
config: './webpack/webpack.renderer.config.js',
entryPoints: [
{
html: './src/shared/index.html',
js: './src/renderer/renderer.js',
name: 'main_window',
},
{
html: './src/shared/index.html',
js: './src/overlay/overlay.js',
name: 'overlay_window',
},
{
html: './src/shared/index.html',
js: './src/commander/index.js',
name: 'commander_window',
},
],
},
devContentSecurityPolicy:
"default-src 'self' 'unsafe-inline' data:; script-src 'self' 'unsafe-eval' 'unsafe-inline' data:; connect-src *",
port: 9000,
loggerPort: 9001,
},
},
],
};