diff --git a/packages/electron-builder-lib/src/asar/unpackDetector.ts b/packages/electron-builder-lib/src/asar/unpackDetector.ts index 56bd9f1291d..9939ee06d9d 100644 --- a/packages/electron-builder-lib/src/asar/unpackDetector.ts +++ b/packages/electron-builder-lib/src/asar/unpackDetector.ts @@ -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) === "") {