Created
May 24, 2022 02:20
-
-
Save luckylittle/39fa47716d4f47468a89a7934fa72c9a to your computer and use it in GitHub Desktop.
Simple workflow to create an EPUB file from the folder and check for EPUB errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
export EPUB=Lyssa_Adkins_-_Coaching_Agile_Teams | |
# No compression zip file, with `mimetype` being the first file in the archive | |
zip -0 -X ${EPUB}.zip mimetype | |
zip -0 -X -r ${EPUB}.zip META-INF OEBPS | |
# Rename .zip to .epub | |
mv -v ${EPUB}.{zip,epub} | |
# Use EPUBCheck to validate against EPUB rules | |
java -jar epubcheck-4.2.6/epubcheck.jar ${EPUB}.epub &> ${EPUB}.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment