From a2e2bee605c7b1a1cab5e4adc1032ae5b2c62150 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Fri, 12 Jun 2020 14:34:32 +0200 Subject: [PATCH] improve darwin-x64 binary download script :green_heart: --- build/index.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build/index.sh b/build/index.sh index b03081b..e0a6f9a 100755 --- a/build/index.sh +++ b/build/index.sh @@ -70,9 +70,8 @@ $tar_exec -x -f linux-arm64.tar.xz --ignore-case --wildcards -O '**/readme.txt' echo 'darwin x64' echo ' downloading from evermeet.cx' -download "https://evermeet.cx/ffmpeg/getrelease" darwin-x64-ffmpeg.7z +download 'https://evermeet.cx/ffmpeg/getrelease/ffmpeg/zip' darwin-x64.zip echo ' extracting' -7zr e -y -bd -o../bin darwin-x64-ffmpeg.7z >/dev/null +unzip -o -d ../bin -j darwin-x64.zip ffmpeg mv ../bin/ffmpeg ../bin/darwin-x64 -header=$(curl -s -X HEAD -I 'https://evermeet.cx/ffmpeg/getrelease' | grep -i '^location:') -echo "Retrieved from https://evermeet.cx/ffmpeg${header:10}" > ../bin/darwin-x64.README +curl -s -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/release' | jq --tab '.' >../bin/darwin-x64.README