-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.js
71 lines (70 loc) · 1.99 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
const path = require('path');
const rootDir = process.cwd();
const package = require('./package.json');
module.exports = {
packagerConfig: {
asar: false,
executableName: 'controlpad',
appCopyright: `Copyright (C) ${new Date().getFullYear()} KlutzyBubbles`,
extraResource: path.resolve(rootDir, 'assets', 'icon.ico'),
},
makers: [
{
name: '@electron-forge/maker-squirrel',
// platforms: ['win32'],
config: (arch) => {
return {
name: 'controlpad',
authors: 'KlutzyBubbles',
exe: 'controlpad.exe',
noMsi: true,
remoteReleases: '',
setupExe: `controlpad-${package.version}-setup-${arch}.exe`,
setupIcon: path.resolve(rootDir, 'assets', 'icon.ico'),
// certificateFile: process.env['WINDOWS_CODESIGN_FILE'],
// certificatePassword: process.env['WINDOWS_CODESIGN_PASSWORD'],
}
}
},
{
name: '@electron-forge/maker-zip',
// platforms: ['darwin', 'win32']
},
{
name: '@electron-forge/maker-deb',
// platforms: ['linux']
},
{
name: '@electron-forge/maker-rpm',
// platforms: ['linux']
},
],
plugins: [
[
'@electron-forge/plugin-webpack',
{
devContentSecurityPolicy: '',
port: 30001, // Webpack Dev Server port
loggerPort: 9005,
mainConfig: path.join(rootDir, 'tools/webpack/webpack.main.js'),
renderer: {
config: path.join(rootDir, 'tools/webpack/webpack.renderer.js'),
entryPoints: [
{
name: 'app_window',
rhmr: 'react-hot-loader/patch',
html: path.join(rootDir, 'src/renderer/app.html'),
js: path.join(rootDir, 'src/renderer/Renderer.tsx'),
preload: {
js: path.join(rootDir, 'src/renderer/Preload.tsx'),
},
},
],
},
devServer: {
liveReload: false,
},
},
],
],
};