From 1f44bd8e4034cd4986ab1d5c5c171dfe842aee3f Mon Sep 17 00:00:00 2001 From: vhsdream Date: Sun, 24 Aug 2025 20:47:13 -0400 Subject: [PATCH] Autocaliweb: manual install of Calibre; symlink plugin dir --- install/autocaliweb-install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install/autocaliweb-install.sh b/install/autocaliweb-install.sh index fa08c860..e9b121eb 100644 --- a/install/autocaliweb-install.sh +++ b/install/autocaliweb-install.sh @@ -46,7 +46,15 @@ $STD apt-get install -y --no-install-recommends \ msg_ok "Installed dependencies" fetch_and_deploy_gh_release "kepubify" "pgaskin/kepubify" "singlefile" "latest" "/usr/bin" "kepubify-linux-64bit" -fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz" + +msg_info "Installing Calibre" +CALIBRE_RELEASE="$(curl -s https://api.github.com/repos/kovidgoyal/calibre/releases/latest | grep -o '"tag_name": "[^"]*' | cut -d'"' -f4)" +CALIBRE_VERSION=${CALIBRE_RELEASE#v} +curl -fsSL https://github.com/kovidgoyal/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_VERSION}-x86_64.txz -o /tmp/calibre.txz +$STD tar -xf /tmp/calibre.txz /opt/calibre +rm /tmp/calibre.txz +$STD /opt/calibre/calibre_postinstall +msg_ok "Calibre installed" setup_uv @@ -78,6 +86,7 @@ cat <./dirs.json } EOF useradd -s /usr/sbin/nologin -d "$CONFIG_DIR" -M "SERVICE_USER" +ln -sf "$CONFIG_DIR"/.config/calibre/plugins "$CONFIG_DIR"/calibre_plugins msg_ok "Configured Autocaliweb" msg_info "Creating ACWSync Plugin for KOReader"