Merge pull request #92 from an-lee/main

Fix CI
This commit is contained in:
an-lee
2024-01-11 12:57:52 +08:00
committed by GitHub

View File

@@ -20,6 +20,7 @@ let nativeModuleDependenciesToPackage: Set<string>;
const config: ForgeConfig = {
packagerConfig: {
icon: "./assets/icon",
name: "Enjoy",
executableName: "enjoy",
protocols: [
{
@@ -80,7 +81,10 @@ const config: ForgeConfig = {
}),
],
hooks: {
// TODO: remove this once this issue is resolved: https://github.com/electron/forge/pull/3336
prePackage: async (forgeConfig) => {
if (process.platform === "linux") return;
if (forgeConfig.packagerConfig.ignore !== undefined) {
throw new Error(
"forgeConfig.packagerConfig.ignore is already defined. Please remove it from your forge config and instead use the prePackage hook to dynamically set it."