diff --git a/packages/electron-builder-lib/src/publish/PublishManager.ts b/packages/electron-builder-lib/src/publish/PublishManager.ts index 129e7ccba6f..b7d555993cd 100644 --- a/packages/electron-builder-lib/src/publish/PublishManager.ts +++ b/packages/electron-builder-lib/src/publish/PublishManager.ts @@ -71,7 +71,7 @@ export class PublishManager implements PublishContext { packager.addAfterPackHandler(async event => { const packager = event.packager if (event.electronPlatformName === "darwin") { - if (!event.targets.some(it => it.name === "dmg")) { + if (!event.targets.some(it => it.name === "dmg" || it.name === "zip")) { return } } diff --git a/packages/electron-builder-lib/src/util/packageDependencies.ts b/packages/electron-builder-lib/src/util/packageDependencies.ts index c18cb06f2c7..1cacf51b8cb 100644 --- a/packages/electron-builder-lib/src/util/packageDependencies.ts +++ b/packages/electron-builder-lib/src/util/packageDependencies.ts @@ -30,7 +30,7 @@ export interface Dependency { const knownAlwaysIgnoredDevDeps = new Set([ "electron-builder-tslint-config", "electron-download", "electron-forge", "electron-packager", "electron-compilers", - "jest", "jest-cli", "prebuild-install", "nan", + "prebuild-install", "nan", "electron-webpack", "electron-webpack-ts", "electron-webpack-vue", "@types", ])