-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforge.config.js
More file actions
69 lines (68 loc) · 1.76 KB
/
forge.config.js
File metadata and controls
69 lines (68 loc) · 1.76 KB
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
const path = require('path');
const { version, name } = require('./package.json');
module.exports = {
packagerConfig: {
name: 'clickr',
executableName: 'clickr',
icon: path.join(__dirname, '.webpack/main/icons/icon'),
win32metadata: {
CompanyName: 'Clickr',
ProductName: 'Clickr',
FileDescription: 'A heavyweight but beautiful auto-clicker'
}
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'Clickr',
setupExe: `${name}_${version}_win64.exe`,
setupIcon: path.join(__dirname, '.webpack/main/icons/icon.ico'),
iconUrl: path.join(__dirname, '.webpack/main/icons/icon.ico')
}
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin']
},
{
name: '@electron-forge/maker-deb',
platforms: ['linux'],
config: {
categories: ['Utility'],
description: 'A heavyweight but beautiful auto-clicker',
icon: path.join(__dirname, '.webpack/main/icons/icon.png'),
}
}
],
plugins: [
{
name: '@electron-forge/plugin-webpack',
config: {
devContentSecurityPolicy: 'default-src \'self\' https://fonts.googleapis.com https://fonts.gstatic.com \'unsafe-eval\' \'unsafe-inline\';img-src * \'self\' data:;media-src \'self\' data:;',
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
entryPoints: [
{
name: 'main_window',
html: './src/renderer/core/index.html',
js: './src/renderer/core/renderer.js',
preload: {
js: './src/main/preload.js'
}
},
{
name: 'settings_window',
html: './src/renderer/settings/index.html',
js: './src/renderer/settings/renderer.js',
preload: {
js: './src/main/preload.js'
}
}
]
}
}
}
]
};