-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.js
72 lines (71 loc) · 1.67 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
/* eslint-disable */
const path = require('path');
const packageJson = require('./package.json');
const iconPath = path.resolve(__dirname, './assets/icon-white-bg.ico');
module.exports = {
packagerConfig: {
arch: 'x64',
platform: 'win32',
dir: '.',
out: 'out',
icon: iconPath,
overwrite: true,
},
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
authToken: process.env.FORGE_TOKEN,
repository: {
owner: 'garage-panda',
name: 'rev-clone-pad-test',
},
draft: false,
},
},
],
makers: [
{
name: '@electron-forge/maker-squirrel',
platforms: ['win32'],
config: {
authors: 'Full Impact Technologies',
name: 'rev_clone_pad',
exe: 'Rev Clone Pad.exe',
iconUrl: iconPath,
setupIcon: iconPath,
setupExe: `REV Clone Pad Setup ${packageJson.version}.exe`,
noMsi: true,
},
},
],
plugins: [
[
"@electron-forge/plugin-webpack",
{
mainConfig: "./webpack.main.config.js",
renderer: {
config: "./webpack.renderer.config.js",
entryPoints: [
{
html: "./src/ui/main/index.html",
js: "./src/ui/main/index.tsx",
name: "main",
preload: {
js: "./src/preload.ts"
}
},
{
html: "./src/ui/loading/index.html",
js: "./src/ui/loading/index.tsx",
name: "loading",
preload: {
js: "./src/preload.ts"
}
}
]
}
}
]
]
};