Skip to content

Commit

Permalink
Support zip archives not starting at zero offset (#346)
Browse files Browse the repository at this point in the history
* Support zip archives not starting at zero offset

Zip archives are usually read from the back to the front, making it
possible to append them to other files (e.g. executables) in order to
provide some kind of embedded filesystem.

This PR makes it possible to read, write, and update such zip files
without affecting the existing functionality.

* Use updated miniz version

The new miniz version correctly computes the archive starting offset.

* Fix compilation errors

Use the correct mkdir signature on Windows vs other platforms.
Remove CHMOD macro, it was simply wrapping the chmod libc call.

* Address some fixes

---------

Co-authored-by: Kuba Podgórski <[email protected]>
  • Loading branch information
LemonBoy and kuba-- authored Jul 21, 2024
1 parent 1682607 commit 8aa5ad2
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 195 deletions.
Loading

0 comments on commit 8aa5ad2

Please sign in to comment.