diff --git a/packages/app-builder-lib/src/asar/unpackDetector.ts b/packages/app-builder-lib/src/asar/unpackDetector.ts index af929f609d8..1777fbb8203 100644 --- a/packages/app-builder-lib/src/asar/unpackDetector.ts +++ b/packages/app-builder-lib/src/asar/unpackDetector.ts @@ -80,7 +80,7 @@ export async function detectUnpackedDirs(fileSet: ResolvedFileSet, autoUnpackDir let shouldUnpack = false // ffprobe-static and ffmpeg-static are known packages to always unpack const moduleName = path.basename(packageDir) - if (moduleName === "ffprobe-static" || moduleName === "ffmpeg-static" || isLibOrExe(file)) { + if (["ffprobe-static", "ffmpeg-static"].includes(moduleName) || moduleName.includes("python") || isLibOrExe(file)) { shouldUnpack = true } else if (!file.includes(".", nextSlashIndex)) { shouldUnpack = !!isBinaryFileSync(file)