crowbook
crowbook copied to clipboard
Use zlib instead of a zip command
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.
libzip, not zlib
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)