Make MIMETYPE file the first file in an EPUB ZIP file?

て烟熏妆下的殇ゞ 提交于 2019-12-08 18:39:30

As you found out, the mimetype filename must be lowercase. Of the files required by the EPUB format, only the META-INF/ directory should have an uppercase name. By the way, you only need one """zip -rDX9" command. The -r will recursively include the subdirectories and files into the .epub.

There are three Terminal commands you need to use to build your EPUB:

  1. Load in the mimetype file:

zip -X "[book_title_goes_here].epub" mimetype

  1. Load in the META-INF directory and exclude any .DS_Store files:

zip -rg "[book_title_goes_here].epub" META-INF -x *.DS_Store

  1. Load in the EPUB directory (or whatever you've named the directory where all of your content lives), and exclude any .DS_Store files:

zip -rg "[book_title_goes_here].epub" EPUB -x *.DS_Store

Don't forget to run your book through epubcheck (you can download an AppleScript app from Google Code; just drag and drop the EPUB file onto the AS app: https://code.google.com/p/epub-applescripts/downloads/detail?name=ePubCheck_3.0b5.zip&can=2&q=).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!