forked from chrismaltby/gb-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forge.config.js
102 lines (102 loc) · 2.79 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
97
98
99
100
101
102
/* eslint-disable global-require */
module.exports = {
makers: [
{
name: "@electron-forge/maker-squirrel",
config: {
name: "gb_studio",
exe: "gb-studio.exe",
loadingGif: "src/assets/app/install.gif",
setupIcon: "src/assets/app/icon/app_icon.ico",
},
},
{
name: "@electron-forge/maker-zip",
platforms: ["darwin", "win32"],
},
{
name: "@electron-forge/maker-deb",
config: {},
},
{
name: "@electron-forge/maker-rpm",
config: {},
},
],
packagerConfig: {
name: "GB Studio",
executableName: "gb-studio",
packageManager: "yarn",
icon: "src/assets/app/icon/app_icon",
darwinDarkModeSupport: true,
extendInfo: "src/assets/app/Info.plist",
extraResource: ["src/assets/app/icon/gbsproj.icns"],
afterCopy: ["./src/lib/forge/hooks/after-copy"],
asar: true,
appBundleId: "dev.gbstudio.gbstudio",
osxSign: {
"hardened-runtime": true,
"gatekeeper-assess": false,
entitlements: "./entitlements.plist",
"entitlements-inherit": "./entitlements.plist",
},
},
hooks: {
postPackage: require("./src/lib/forge/hooks/notarize"),
},
plugins: [
[
"@electron-forge/plugin-webpack",
{
mainConfig: "./webpack.main.config.js",
renderer: {
config: "./webpack.renderer.config.js",
entryPoints: [
{
html: "./src/app/project/project.html",
js: "./src/app/project/ProjectRoot.js",
name: "main_window",
additionalChunks: [
"vendor-react",
"vendor-scriptracker",
"vendor-hotloader",
"vendor-lodash",
"vendor-chokidar",
],
},
{
html: "./src/app/splash/splash.html",
js: "./src/app/splash/SplashRoot.js",
name: "splash_window",
additionalChunks: [
"vendor-react",
"vendor-hotloader",
"vendor-lodash",
],
},
{
html: "./src/app/preferences/preferences.html",
js: "./src/app/preferences/PreferencesRoot.js",
name: "preferences_window",
additionalChunks: [
"vendor-react",
"vendor-hotloader",
"vendor-lodash",
],
},
{
html: "./src/app/music/music.html",
js: "./src/app/music/MusicRoot.js",
name: "music_window",
additionalChunks: [
"vendor-react",
"vendor-hotloader",
"vendor-lodash",
],
},
],
},
},
],
],
};