diff --git a/packages/api/core/src/api/package.ts b/packages/api/core/src/api/package.ts index c098095955..da09e79252 100644 --- a/packages/api/core/src/api/package.ts +++ b/packages/api/core/src/api/package.ts @@ -316,6 +316,10 @@ export const listrPackage = ( }; packageOpts.quiet = true; + if (packageOpts.tmpdir === false) { + throw new Error('config.forge.packagerConfig.tmpdir is not supported to set false by Electron Forge'); + } + if (packageOpts.all) { throw new Error('config.forge.packagerConfig.all is not supported by Electron Forge'); }