get-exiftool: use versions from BinExt

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-04-29 12:52:42 -07:00
parent 76dddf6a8b
commit 3acf02e7cf
1 changed files with 20 additions and 13 deletions

View File

@ -2,28 +2,35 @@
set -e set -e
exifver="12.58" SCRIPT=$(realpath "$0")
SCRIPT_PATH=$(dirname "$SCRIPT")
binExtVar() {
php -r "require '$SCRIPT_PATH/../lib/Service/BinExt.php'; echo \OCA\Memories\Service\BinExt::$1;"
}
EXIFTOOL_VER=$(binExtVar EXIFTOOL_VER)
GOVOD_VER=$(binExtVar GOVOD_VER)
rm -rf exiftool-bin rm -rf exiftool-bin
mkdir -p exiftool-bin mkdir -p exiftool-bin
cd exiftool-bin cd exiftool-bin
echo "Getting exiftool $exifver" echo "Getting exiftool $EXIFTOOL_VER"
wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$exifver/exiftool-amd64-musl" wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$EXIFTOOL_VER/exiftool-amd64-musl"
wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$exifver/exiftool-amd64-glibc" wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$EXIFTOOL_VER/exiftool-amd64-glibc"
wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$exifver/exiftool-aarch64-musl" wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$EXIFTOOL_VER/exiftool-aarch64-musl"
wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$exifver/exiftool-aarch64-glibc" wget -q "https://github.com/pulsejet/exiftool-bin/releases/download/$EXIFTOOL_VER/exiftool-aarch64-glibc"
chmod 755 * chmod 755 *
wget -q "https://github.com/exiftool/exiftool/archive/refs/tags/$exifver.zip" wget -q "https://github.com/exiftool/exiftool/archive/refs/tags/$EXIFTOOL_VER.zip"
unzip -qq "$exifver.zip" unzip -qq "$EXIFTOOL_VER.zip"
mv "exiftool-$exifver" exiftool mv "exiftool-$EXIFTOOL_VER" exiftool
rm -rf *.zip exiftool/t exiftool/html exiftool/windows_exiftool rm -rf *.zip exiftool/t exiftool/html exiftool/windows_exiftool
chmod 755 exiftool/exiftool chmod 755 exiftool/exiftool
govod="0.1.1" echo "Getting go-vod $GOVOD_VER"
echo "Getting go-vod $govod" wget -q "https://github.com/pulsejet/go-vod/releases/download/$GOVOD_VER/go-vod-amd64"
wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-amd64" wget -q "https://github.com/pulsejet/go-vod/releases/download/$GOVOD_VER/go-vod-aarch64"
wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-aarch64"
chmod 755 go-vod-* chmod 755 go-vod-*
cd .. cd ..