@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user