diff --git a/src/asarUtil.ts b/src/asarUtil.ts index 3895da7803e..7a6ec5efbe3 100644 --- a/src/asarUtil.ts +++ b/src/asarUtil.ts @@ -241,9 +241,8 @@ class AsarPackager { } } - if (filesToUnpack.length > MAX_FILE_REQUESTS) { + if (filesToUnpack.length > 0) { await writeUnpackedFiles(filesToUnpack, fileCopier) - filesToUnpack.length = 0 } } @@ -394,4 +393,4 @@ export async function checkFileInArchive(asarFile: string, relativeFile: string, if (stat.size === 0) { throw error(`is corrupted: size 0`) } -} \ No newline at end of file +}