-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
forge.config.js
96 lines (96 loc) · 2.48 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
module.exports = {
packagerConfig: {
icon: require('path').resolve(__dirname, 'src/statics/icon'),
appBundleId: 'com.mtgarenapro.mtgaprotracker',
appCategoryType: 'public.app-category.entertainment',
osxSign: {
hardenedRuntime: true,
'gatekeeper-assess': false,
entitlements: 'entitlements.plist',
'entitlements-inherit': 'entitlements.plist',
'signature-flags': 'library',
},
osxNotarize: {
appBundleId: 'com.mtgarenapro.mtgaprotracker',
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
},
},
publishers: [
{
name: '@electron-forge/publisher-github',
platforms: ['darwin', 'win32'],
config: {
repository: {
owner: 'Razviar',
name: 'mtgap',
},
prerelease: false,
draft: false,
},
},
],
makers: [
{
name: '@electron-forge/maker-squirrel',
platforms: ['win32'],
config: {
name: 'mtgaprotracker',
signWithParams: '/sha1 a2ed9c1235299de7e8178c13fad6d2bdde08ad67 /t http://timestamp.sectigo.com /fd SHA256',
iconUrl: 'https://mtgarena.pro/mtg/icon.ico',
},
},
{
name: '@electron-forge/maker-dmg',
platforms: ['darwin'],
config: {
name: 'mtgaprotracker',
overwrite: true,
background: './dmg-background.tiff',
icon: './src/statics/icon.icns',
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
config: {},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
plugins: [
{
name: '@electron-forge/plugin-webpack',
config: {
devServer: {hot: false, liveReload: false},
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
entryPoints: [
{
html: './src/windows/home/home.html',
js: './src/windows/home/home.ts',
preload: {
js: './src/windows/preload.js',
},
name: 'home_window',
},
{
html: './src/windows/overlay/overlay.html',
js: './src/windows/overlay/overlay.ts',
preload: {
js: './src/windows/preload.js',
},
name: 'overlay_window',
},
],
},
},
},
],
};