View Single Post
Old 07-17-2014, 09:16 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I use a script like this all the time:

Code:
#!/bin/bash

rm -f "$1"
zip -X0 "$1" mimetype
zip -X9Dr "$1" META-INF OEBPS
which is basically the same you do.

Now, the question is, what is the content of your "mimetype" file? It should be:

Code:
application/epub+zip
and only that, no newline at the end or anything else.
Jellby is offline   Reply With Quote