Skip to content

Commit

Permalink
Update narou and aozoraepub3
Browse files Browse the repository at this point in the history
Change to use narou-3.8.1 and AozoraEpub3-1.1.1b13Q.
  • Loading branch information
jam7 committed May 29, 2022
1 parent 2cac415 commit 7ed4ccf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM adoptopenjdk/openjdk8:alpine-slim
LABEL maintainer "Kazushi (Jam) Marukawa <jam@pobox.com>"

ENV NAROU_VERSION 3.8.0
ENV NAROU_VERSION 3.8.1
WORKDIR /opt/narou

RUN apk --update add --no-cache ruby ruby-io-console ruby-json ruby-etc ca-certificates curl unzip docker-cli su-exec
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

RELEASE_VERSION = v1.16
RELEASE_VERSION = v1.17
VERSION = latest

OPTIONS = \
Expand Down
10 changes: 5 additions & 5 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/sh

AOZORA_VERSION=1.1.1b9Q
AOZORA_ZIP=AozoraEpub3-${AOZORA_VERSION}.zip
AOZORA_DIR=/opt/narou/AozoraEpub3-${AOZORA_VERSION}
AOZORA_REL=v1.1.1b13Q
AOZORA_ZIP=AozoraEpub3-1.1.1b13Q.zip
AOZORA_DIR=/opt/narou/AozoraEpub3-1.1.1b13Q

# Extract the latest AozoraEpub3 to /opt/narou (host's $HOME/.narou).
if [ ! -d ${AOZORA_DIR} ]; then

curl -L https://github.com/kyukyunyorituryo/AozoraEpub3/releases/download/${AOZORA_VERSION}/${AOZORA_ZIP} -o /tmp/${AOZORA_ZIP}
curl -L https://github.com/kyukyunyorituryo/AozoraEpub3/releases/download/${AOZORA_REL}/${AOZORA_ZIP} -o /tmp/${AOZORA_ZIP}
unzip -q /tmp/${AOZORA_ZIP} -d /opt/narou
ln -s /narou/kindlegen.sh ${AOZORA_DIR}/kindlegen

# Create dummy directories
mkdir -p /opt/narou/AozoraEpub3-1.1.1b9Q/template/OPS/css_custom/
mkdir -p ${AOZORA_DIR}/template/OPS/css_custom/

# Initialize by narou
narou init -p ${AOZORA_DIR} -l 1.6
Expand Down

0 comments on commit 7ed4ccf

Please sign in to comment.