Skip to content

Commit 150ea5d

Browse files
committed
fix(packager): check asar.unpack correctly
1 parent cbb73e7 commit 150ea5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default async (providedOptions = {}) => {
9595
version: packageJSON.devDependencies['electron-prebuilt-compile'],
9696
});
9797
packageOpts.quiet = true;
98-
if (typeof packageOpts.asar === 'object' && packageOpts.unpack) {
98+
if (typeof packageOpts.asar === 'object' && packageOpts.asar.unpack) {
9999
packagerSpinner.fail();
100100
throw new Error('electron-compile does not support asar.unpack yet. Please use asar.unpackDir');
101101
}

0 commit comments

Comments
 (0)