Fix Linux ZIP preflight entry listing

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-03 17:23:09 +09:00
parent 6b8d9df316
commit 22c8e8388f
2 changed files with 61 additions and 2 deletions
+10 -1
View File
@@ -2,7 +2,12 @@ import { spawn, spawnSync } from "bun"
import { release } from "os"
import { validateArchiveEntries } from "./archive-entry-validator"
import { listZipEntriesWithPowerShell, listZipEntriesWithTar } from "./zip-entry-listing"
import {
isPythonZipListingAvailable,
listZipEntriesWithPowerShell,
listZipEntriesWithPython,
listZipEntriesWithTar,
} from "./zip-entry-listing"
const WINDOWS_BUILD_WITH_TAR = 17134
@@ -98,5 +103,9 @@ async function listZipEntries(archivePath: string) {
return listZipEntriesWithPowerShell(archivePath, escapePowerShellPath, extractor)
}
if (isPythonZipListingAvailable()) {
return listZipEntriesWithPython(archivePath)
}
return listZipEntriesWithTar(archivePath)
}