View Single Post
Old 03-22-2015, 06:43 AM   #10
Steve_White
Junior Member
Steve_White began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2015
Location: Potsdam, Germany
Device: Kobo Aura
Create the ebook with the -X option, to stop it adding the "extra field" to the zip (the first error message), and '-Z store' to avoid compressing the mimetype file.

The mimetype file should have length 20 bytes. Check with command 'ls -l'.
If the length is greater, you probably have a newline at the end. But most editors put this on automatically. To make a mimetype file,

echo -n "application/epub+zip" > mimetype

Then create the book like this (change names where appropriate)

zip -Z store -Xr MyBook.epub mimetype
zip -r MyBook.epub META-INF/
zip -r MyBook.epub Content/

Cheers!
Steve_White is offline   Reply With Quote