Skip to content

Commit

Permalink
try force unpacking python
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Jun 25, 2023
1 parent b13b5f2 commit a7f1ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/asar/unpackDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a7f1ac5

Please sign in to comment.