-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix building Linux AppImage. Required update to latest version of mak…
…er-appimage and move to Node 21
- Loading branch information
1 parent
0a04aef
commit 6296baf
Showing
6 changed files
with
164 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.11.1 | ||
21.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,133 +1,134 @@ | ||
const { FusesPlugin } = require("@electron-forge/plugin-fuses"); | ||
const { FuseV1Options, FuseVersion } = require("@electron/fuses"); | ||
|
||
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", | ||
module.exports = async () => { | ||
const { MakerAppImage } = await import("@reforged/maker-appimage"); | ||
|
||
return { | ||
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"], | ||
}, | ||
new MakerAppImage({}), | ||
{ | ||
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, | ||
entitlements: "./entitlements.plist", | ||
}, | ||
}, | ||
{ | ||
name: "@electron-forge/maker-zip", | ||
platforms: ["darwin", "win32"], | ||
}, | ||
{ | ||
name: "@reforged/maker-appimage", | ||
config: {}, | ||
}, | ||
{ | ||
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, | ||
entitlements: './entitlements.plist' | ||
}, | ||
}, | ||
hooks: { | ||
postPackage: require("./src/lib/forge/hooks/notarize"), | ||
}, | ||
plugins: [ | ||
{ | ||
name: "@electron-forge/plugin-auto-unpack-natives", | ||
config: {}, | ||
hooks: { | ||
postPackage: require("./src/lib/forge/hooks/notarize"), | ||
}, | ||
{ | ||
name: "@electron-forge/plugin-webpack", | ||
config: { | ||
mainConfig: "./webpack.main.config.js", | ||
renderer: { | ||
config: "./webpack.renderer.config.js", | ||
nodeIntegration: false, | ||
entryPoints: [ | ||
{ | ||
html: "./src/app/project/project.html", | ||
js: "./src/app/project/ProjectRoot.tsx", | ||
preload: { | ||
js: "./src/app/project/preload.ts", | ||
plugins: [ | ||
{ | ||
name: "@electron-forge/plugin-auto-unpack-natives", | ||
config: {}, | ||
}, | ||
{ | ||
name: "@electron-forge/plugin-webpack", | ||
config: { | ||
mainConfig: "./webpack.main.config.js", | ||
renderer: { | ||
config: "./webpack.renderer.config.js", | ||
nodeIntegration: false, | ||
entryPoints: [ | ||
{ | ||
html: "./src/app/project/project.html", | ||
js: "./src/app/project/ProjectRoot.tsx", | ||
preload: { | ||
js: "./src/app/project/preload.ts", | ||
}, | ||
name: "main_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-scriptracker", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
name: "main_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-scriptracker", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
{ | ||
html: "./src/app/splash/splash.html", | ||
js: "./src/app/splash/SplashRoot.tsx", | ||
preload: { | ||
js: "./src/app/splash/preload.ts", | ||
{ | ||
html: "./src/app/splash/splash.html", | ||
js: "./src/app/splash/SplashRoot.tsx", | ||
preload: { | ||
js: "./src/app/splash/preload.ts", | ||
}, | ||
name: "splash_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
name: "splash_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
{ | ||
html: "./src/app/preferences/preferences.html", | ||
js: "./src/app/preferences/PreferencesRoot.tsx", | ||
preload: { | ||
js: "./src/app/project/preload.ts", | ||
{ | ||
html: "./src/app/preferences/preferences.html", | ||
js: "./src/app/preferences/PreferencesRoot.tsx", | ||
preload: { | ||
js: "./src/app/project/preload.ts", | ||
}, | ||
name: "preferences_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
name: "preferences_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
{ | ||
html: "./src/app/music/music.html", | ||
js: "./src/app/music/MusicRoot.tsx", | ||
preload: { | ||
js: "./src/app/project/preload.ts", | ||
{ | ||
html: "./src/app/music/music.html", | ||
js: "./src/app/music/MusicRoot.tsx", | ||
preload: { | ||
js: "./src/app/project/preload.ts", | ||
}, | ||
name: "music_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
name: "music_window", | ||
additionalChunks: [ | ||
"vendor-react", | ||
"vendor-hotloader", | ||
"vendor-lodash", | ||
], | ||
}, | ||
], | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
// Fuses are used to enable/disable various Electron functionality | ||
// at package time, before code signing the application | ||
new FusesPlugin({ | ||
version: FuseVersion.V1, | ||
[FuseV1Options.RunAsNode]: false, | ||
[FuseV1Options.EnableCookieEncryption]: true, | ||
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, | ||
[FuseV1Options.EnableNodeCliInspectArguments]: false, | ||
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, | ||
[FuseV1Options.OnlyLoadAppFromAsar]: true, | ||
}), | ||
], | ||
// Fuses are used to enable/disable various Electron functionality | ||
// at package time, before code signing the application | ||
new FusesPlugin({ | ||
version: FuseVersion.V1, | ||
[FuseV1Options.RunAsNode]: false, | ||
[FuseV1Options.EnableCookieEncryption]: true, | ||
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, | ||
[FuseV1Options.EnableNodeCliInspectArguments]: false, | ||
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, | ||
[FuseV1Options.OnlyLoadAppFromAsar]: true, | ||
}), | ||
], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.