fix forge config for package

This commit is contained in:
an-lee
2024-01-11 12:44:37 +08:00
parent 71c33faf7a
commit 9ee0238372

View File

@@ -80,7 +80,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."