Wouldn't it be far easier just to unzip the Epub, drop the files (probably from the command line for simplicity) and then rezip the files (ignoring for now the requirement to have the mimetype [I think that's the file] uncompressed and as the first file) then use sigil to open and save the file to get the internal zip format perfect.
Sent from my Pixel 4a using Tapatalk
|