-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforge.config.ts
112 lines (110 loc) · 2.99 KB
/
forge.config.ts
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
109
110
111
112
/**
* Electron Forge main configuration object.
*
* @module
*/
import 'dotenv/config';
import { MakerDMG } from '@electron-forge/maker-dmg';
import { MakerSquirrel } from '@electron-forge/maker-squirrel';
import { WebpackPlugin } from '@electron-forge/plugin-webpack';
import { ElectronMainWebpackConfig, ElectronRendererWebpackConfig } from './webpack.config';
import type { ForgeConfig } from '@electron-forge/shared-types';
/**
* Electron Forge main configuration object.
*
* @constant
*/
const config: ForgeConfig = {
buildIdentifier: 'alpha',
packagerConfig: {
appBundleId: 'gg.playliga.application',
appCopyright: 'Copyright © 2024 Steve Rivera',
extraResource: [
'./src/backend/prisma/databases',
'./src/backend/prisma/migrations',
'./src/resources/blazonry',
'./src/resources/maps',
'./src/resources/markdown',
'./src/resources/trophies',
'./src/resources/certs',
],
icon: './src/frontend/assets/icon',
},
makers: [
new MakerSquirrel({
setupIcon: './src/frontend/assets/icon.ico',
iconUrl: 'https://raw.githubusercontent.com/playliga/website/main/public/favicon.ico',
}),
new MakerDMG({
icon: './src/frontend/assets/icon.ico',
}),
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
authToken: process.env.GH_PUBLISH_API_KEY,
draft: false,
prerelease: false,
repository: {
owner: 'playliga',
name: 'application',
},
},
},
],
plugins: [
new WebpackPlugin({
mainConfig: ElectronMainWebpackConfig,
renderer: {
config: ElectronRendererWebpackConfig,
entryPoints: [
{
html: './src/frontend/assets/index.html',
js: './src/frontend/windows/main.tsx',
name: 'main_window',
preload: {
js: './src/frontend/lib/preload.ts',
},
},
{
html: './src/frontend/assets/index.html',
js: './src/frontend/windows/splash.tsx',
name: 'splash_window',
preload: {
js: './src/frontend/lib/preload.ts',
},
},
{
html: './src/frontend/assets/index.html',
js: './src/frontend/windows/landing.tsx',
name: 'landing_window',
preload: {
js: './src/frontend/lib/preload.ts',
},
},
{
html: './src/frontend/assets/index.html',
js: './src/frontend/windows/threading.tsx',
name: 'threading_window',
nodeIntegration: true,
},
{
html: './src/frontend/assets/index.html',
js: './src/frontend/windows/modal.tsx',
name: 'modal_window',
preload: {
js: './src/frontend/lib/preload.ts',
},
},
],
},
}),
],
};
/**
* Exports this module.
*
* @exports
*/
export default config;