Skip to content

Commit

Permalink
fix: unpack node module if there is dylib file
Browse files Browse the repository at this point in the history
Close #2635
  • Loading branch information
develar committed Mar 9, 2018
1 parent 7532142 commit daf6f59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/electron-builder-lib/src/asar/unpackDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export async function detectUnpackedDirs(fileSet: ResolvedFileSet, autoUnpackDir
continue
}

// https://github.com/electron-userland/electron-builder/issues/2679
let shouldUnpack = false
if (file.endsWith(".dll") || file.endsWith(".exe")) {
if (file.endsWith(".dll") || file.endsWith(".exe") || file.endsWith(".dylib")) {
shouldUnpack = true
}
else if (!file.includes(".", nextSlashIndex) && path.extname(file) === "") {
Expand Down

0 comments on commit daf6f59

Please sign in to comment.