Skip to content

Commit

Permalink
fix(packager): check asar.unpack correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jan 11, 2017
1 parent cbb73e7 commit 150ea5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default async (providedOptions = {}) => {
version: packageJSON.devDependencies['electron-prebuilt-compile'],
});
packageOpts.quiet = true;
if (typeof packageOpts.asar === 'object' && packageOpts.unpack) {
if (typeof packageOpts.asar === 'object' && packageOpts.asar.unpack) {
packagerSpinner.fail();
throw new Error('electron-compile does not support asar.unpack yet. Please use asar.unpackDir');
}
Expand Down

0 comments on commit 150ea5d

Please sign in to comment.