weichsel / ZIPFoundation

Effortless ZIP Handling in Swift
MIT License
2.31k stars 255 forks source link

Support for Windows and `zlib` portability (NOT an issue) #262

Closed gregcotten closed 1 year ago

gregcotten commented 1 year ago

I'm just leaving this here for (the dozens!!!) of folks that might be looking for something like ZIPFoundation but need to use it on a non-POSIX platform like Windows.

I ripped out all the low-level POSIX calls and tweaked the codebase a bit to use high-level Foundation instead of POSIX file descriptors / memory file mapping.

I also wanted to not rely on zlib being present on the user's OS (non-Apple only, of course), so I instead include the most recent version of zlib from source instead as a replacement for the CZLib shim in the original repo.

Anyway, here is the repo: ZIPFoundationModern