Download from github rather than calibre's own mirror

This commit is contained in:
TheSpad 2022-07-24 15:34:20 +01:00
parent edb64a22b7
commit 8666950f48
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ RUN \
mkdir -p \
/root-layer && \
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g') && \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
echo $CALIBRE_RELEASE > /root-layer/CALIBRE_RELEASE
# copy local files

View File

@ -61,7 +61,7 @@ fi
echo "**** Fetching calibre bin ****"
if [ -z ${CALIBRE_RELEASE+x} ]; then
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g'); \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi
mkdir -p \
@ -70,13 +70,13 @@ mkdir -p \
if [ "$(uname -m)" == "x86_64" ]; then
curl -o \
/tmp/calibre.txz -L \
"https://download.calibre-ebook.com/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE}-x86_64.txz"
"https://github.com/kovidgoyal/calibre/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE:1}-x86_64.txz"
fi
if [ "$(uname -m)" == "aarch64" ]; then
curl -o \
/tmp/calibre.txz -L \
"https://download.calibre-ebook.com/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE}-arm64.txz"
"https://github.com/kovidgoyal/calibre/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE:1}-arm64.txz"
fi
tar xf \