Skip to content

Commit

Permalink
improve darwin-x64 binary download script 💚
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jun 12, 2020
1 parent 525755d commit a2e2bee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a2e2bee

Please sign in to comment.