Skip to content

Commit daf6f59

Browse files
committed
fix: unpack node module if there is dylib file
Close #2635
1 parent 7532142 commit daf6f59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/electron-builder-lib/src/asar/unpackDetector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ export async function detectUnpackedDirs(fileSet: ResolvedFileSet, autoUnpackDir
7575
continue
7676
}
7777

78+
// https://github.com/electron-userland/electron-builder/issues/2679
7879
let shouldUnpack = false
79-
if (file.endsWith(".dll") || file.endsWith(".exe")) {
80+
if (file.endsWith(".dll") || file.endsWith(".exe") || file.endsWith(".dylib")) {
8081
shouldUnpack = true
8182
}
8283
else if (!file.includes(".", nextSlashIndex) && path.extname(file) === "") {

0 commit comments

Comments
 (0)