From f96d633e45267c34bae1b7080c3c120dd0b68c7c Mon Sep 17 00:00:00 2001 From: mikespub Date: Wed, 28 Aug 2024 12:52:59 +0200 Subject: [PATCH] Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77 --- Dockerfile | 9 +++++++++ Dockerfile.aarch64 | 9 +++++++++ readme-vars.yml | 1 + 3 files changed, 19 insertions(+) diff --git a/Dockerfile b/Dockerfile index 54df86b..4a556f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,15 @@ RUN \ composer \ install --no-dev --optimize-autoloader && \ printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ + echo "***install kepubify" && \ + if [ -z ${KEPUBIFY_RELEASE+x} ]; then \ + KEPUBIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/pgaskin/kepubify/releases/latest" \ + | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + fi && \ + curl -o \ + /usr/bin/kepubify -L \ + "https://github.com/pgaskin/kepubify/releases/download/${KEPUBIFY_RELEASE}/kepubify-linux-64bit" && \ + chmod 755 /usr/bin/kepubify && \ echo "**** cleanup ****" && \ rm -rf \ /root/.composer \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 5e2377a..8c7cfcb 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -39,6 +39,15 @@ RUN \ composer \ install --no-dev --optimize-autoloader && \ printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ + echo "***install kepubify" && \ + if [ -z ${KEPUBIFY_RELEASE+x} ]; then \ + KEPUBIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/pgaskin/kepubify/releases/latest" \ + | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + fi && \ + curl -o \ + /usr/bin/kepubify -L \ + "https://github.com/pgaskin/kepubify/releases/download/${KEPUBIFY_RELEASE}/kepubify-linux-arm64" && \ + chmod 755 /usr/bin/kepubify && \ echo "**** cleanup ****" && \ rm -rf \ /root/.composer \ diff --git a/readme-vars.yml b/readme-vars.yml index f5ed77f..52c1a7c 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -66,6 +66,7 @@ app_setup_block: | # changelog changelogs: + - { date: "28.08.24:", desc: "Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77" } - { date: "24.06.24:", desc: "Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings." } - { date: "07.05.24:", desc: "Existing users should verify: site-confs/default.conf - Fix rewriting rules default site conf." } - { date: "20.03.24:", desc: "Rebase to Alpine 3.19." }