mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Dist: Update install-libheif.sh script and related Makefile targets
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
da4e9d57c1
commit
fa3d7d831d
4 changed files with 21 additions and 13 deletions
10
scripts/dist/install-libheif.sh
vendored
10
scripts/dist/install-libheif.sh
vendored
|
|
@ -15,7 +15,7 @@ fi
|
|||
DESTDIR=$(realpath "${1:-/usr/local}")
|
||||
|
||||
# In addition, you can specify a custom version to be installed as the second argument.
|
||||
LIBHEIF_VERSION=${2:-v1.19.5}
|
||||
LIBHEIF_VERSION=${2:-v1.19.7}
|
||||
|
||||
# Determine target architecture.
|
||||
if [[ $PHOTOPRISM_ARCH ]]; then
|
||||
|
|
@ -73,6 +73,14 @@ echo "ARCHIVE: $ARCHIVE"
|
|||
echo "DESTDIR: $DESTDIR"
|
||||
echo "------------------------------------------------"
|
||||
|
||||
echo "Extracting \"$URL\" to \"$DESTDIR\"."
|
||||
if curl --head --silent --fail "$URL" 2> /dev/null; then
|
||||
curl -fsSL "$URL" | tar --overwrite --mode=755 -xz -C "$DESTDIR"
|
||||
else
|
||||
echo "A libheif build for this distribution is not yet available!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Extracting \"$URL\" to \"$DESTDIR\"."
|
||||
curl -fsSL "$URL" | tar --overwrite --mode=755 -xz -C "$DESTDIR"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue