crowbook icon indicating copy to clipboard operation
crowbook copied to clipboard

Use zlib instead of a zip command

Open crowdagger opened this issue 8 years ago • 2 comments

Currently, Epub generation is done using the zip command, which is a portability problem (on Unix systems it is probably installed, but not necessarily on Windows). It would be better to use a library such as zlib-rs (https://github.com/alexcrichton/libz-sys) or https://crates.io/crates/flate2.

crowdagger avatar Apr 16 '16 00:04 crowdagger

libzip, not zlib

crowdagger avatar Oct 25 '16 17:10 crowdagger

epub-builder can use it. crowbook only needs to test the zip program first, and fallbacks to libzip if it doesn't work (I'd rather use it as fallback instead of using it directly since I've had problems with files generated with libzip directly on my ereader)

crowdagger avatar Oct 10 '17 00:10 crowdagger