View Single Post
Old 08-22-2022, 10:07 AM   #17
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,058
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by st_albert View Post
...At the time, I just wrote a script file to handle it so I wouldn't have to think about it. Now, I've lost the script file.
It takes two steps: first, add the uncompressed mimetype file to a new zip file, then add the rest of the files in compressed format to that zip file (omitting the mimetype file). Something like:

Code:
zip my-epub-file -0 mimetype
zip -r my-epub-file * -x mimetype

Last edited by rkomar; 08-22-2022 at 10:09 AM.
rkomar is offline   Reply With Quote