Quote:
Originally Posted by roger64
Looks very useful. How can I resist messing around...
Following what you said, I put the apple.xml file in a META-INF folder, alongside with two EPUBS (screenshot).
I then tried the customary:
Code:
roger@lmde64:~/Bureau/Test$ zip *.epub META-INF/com.apple.ibooks.display-options.xml
updating: META-INF/com.apple.ibooks.display-options.xml (deflated 27%)
adding: Cocardes et dentelles v2.epub (deflated 1%)
roger@lmde64:~/Bureau/Test$
Result: Only the first EPUB file was correctly processed. The second one, "Cocardes et dentelles v2" was not. Is there a way to batch this?
If I take away from the Test folder the first processed EPUB and then repeat the same command, the second EPUB is correctly processed. This can go quickly...
|
The correct commands would be:
Code:
mkdir ex
cd ex
unzip /path/to/file.epub
[modify files here]
zip -Xr9D ../file-edited.epub mimetype * -x .DS_Store
Those flags (-X -r -9 -D and "-x .DS_Store") are pretty much required for proper spec conformance.
Then repeat for the next book in a different directory. You can create only a single zip file per command. Everything after that is considered to be a file that you want to include *in* the output file.