From 6ff600492ba826f7cda97b8c3c7d1441af890d3d Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 5 Jun 2020 14:18:45 +0530 Subject: [PATCH] Adds Dark One --- .gitignore | 2 ++ README.md | 12 ++++++++++++ bootstrap.sh | 3 +++ dark-one-preview.sh | 17 +++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100755 dark-one-preview.sh diff --git a/.gitignore b/.gitignore index b0529e9..f11e79b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ /oathbringer-reread/*.html /books/* vendor +darkone/ +*.cbz diff --git a/README.md b/README.md index 697320e..50bfed4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Scripts to generate books from the [Cosmere](https://coppermind.net/wiki/Cosmere 6. Oathbringer Reread 7. Skyward (Serialized till Chapter 15) 8. Defending Elysium +9. Dark One (Preview Chapter) For obvious reasons, the converted ebooks are not part of this repo. You must download and run the script on your own machine to generate the copies. @@ -71,6 +72,16 @@ See more details at [underlined](https://www.getunderlined.com/read/excerpt-reve More details at https://brandonsanderson.com/defending-elysium/. Annotations at https://brandonsanderson.com/annotation-Recent-Short-Stories-Defending-Elysium/ +# Dark One + +>Brandon Sanderson’s Dark One is a break from the norm; it’s a graphic novel from Vault Comics, originally announced as being in the works two years ago, based on an original idea from Sanderson. The book will be written by Collin Kelly and Jackson Lanzing from a story by Sanderson, with art by Nathan Gooden and colors from Kurt Michael Russell. Lettering on the project comes from Deron Bennett. + +> The chapter below was originally intended to be Vault Comics’ Free Comic Book Day release this year. + +More details at . + +The script generates a CBZ file. + ## Requirements [Docker](https://docs.docker.com/install/) installed. @@ -95,6 +106,7 @@ skyward wok-prime wok-reread wor-reread +dark-one ``` If none is passed, all books will be generated. The entire build (for all books combined) roughly takes 15 minutes on a single core system (excluding the Docker pull). diff --git a/bootstrap.sh b/bootstrap.sh index f5f86a4..7a4ca2c 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -16,6 +16,9 @@ if [ -z "$1" ] --output=books/defending-elysium.epub \ --epub-cover-image=covers/defending-elysium.jpg \ --epub-metadata=metadata/defending-elysium.xml + ./dark-one-preview.sh + elif [[ "$1" == "dark-one" ]]; then + ./dark-one-preview.sh else bundle exec ruby "$1.rb" fi diff --git a/dark-one-preview.sh b/dark-one-preview.sh new file mode 100755 index 0000000..dc99e0b --- /dev/null +++ b/dark-one-preview.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +mkdir -p darkone + +rm "dark-one.cbz" + +for i in $(seq 1 29); do + OUTPUT_FILE=$(printf "%02d" $i) + wget --no-clobber "https://cdn1.thr.com/sites/default/files/2020/06/dark_one_preview_-_publicity_-_embed_$i-_2020.jpg" -O "darkone/$OUTPUT_FILE.jpg"; +done + +# Cover should be at first +mv darkone/04.jpg darkone/00.jpg + +wget "https://cdn1.thr.com/sites/default/files/2020/06/dark_one_preview_-_publicity_-_embed_16-_2020_0.jpg" -O darkone/16.jpg + +zip "books/dark-one.cbz" darkone/*.jpg