guzba / zippy

Pure Nim implementation of deflate, zlib, gzip and zip.
MIT License
246 stars 29 forks source link

Deal with embedded ZIP archive in zippy/ziparchives #51

Closed khchen closed 1 year ago

khchen commented 1 year ago

Accroding to https://en.wikipedia.org/wiki/ZIP_(file_format):

ZIP archives can also include extra data that is not related to the ZIP archive. This allows for a ZIP archive to be made into a self-extracting archive (application that decompresses its contained data), by prepending the program code to a ZIP archive and marking the file as executable.

This patch let ziparchives can deal with a ZIP archive not start from file head.

guzba commented 1 year ago

Hello and thanks for the great PR, sorry I was slow to take a look at this. I am happy to get this supported in Zippy. I'm going to merge this, add a test, confirm things are all good, then I'll tag a release.

guzba commented 1 year ago

Tagged release https://github.com/guzba/zippy/releases/tag/0.10.5