@@ -7,29 +7,38 @@ tar_exec=$(command -v gtar)
77if [ $? -ne 0 ]; then
88 tar_exec=$( command -v tar)
99fi
10+ https://rtfmp.wordpress.com/2017/03/31/difference-7z-7za-and-7zr/
11+ p7zip_exec=$( command -v 7zr)
12+ if [ $? -ne 0 ]; then
13+ p7zip_exec=$( command -v 7zz)
14+ fi
15+ if [ $? -ne 0 ]; then
16+ p7zip_exec=$( command -v 7z)
17+ fi
1018set -e
1119echo using tar executable at $tar_exec
20+ echo using 7z executable at $p7zip_exec
1221
1322mkdir -p ../bin
1423
1524download () {
16- curl -L -# --compressed -A ' https://github.com/eugeneware/ffmpeg-static build script' -o $2 $1
25+ curl -f - L -# --compressed -A ' https://github.com/eugeneware/ffmpeg-static build script' -o $2 $1
1726}
1827
1928echo ' windows x64'
2029echo ' downloading from gyan.dev'
2130download ' https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z' win32-x64.7z
2231echo ' extracting'
2332tmpdir=$( mktemp -d)
24- 7zr e -y -bd -o" $tmpdir " win32-x64.7z > /dev/null
33+ $p7zip_exec e -y -bd -o" $tmpdir " win32-x64.7z > /dev/null
2534mv " $tmpdir /ffmpeg.exe" ../bin/win32-x64
2635chmod +x ../bin/win32-x64
2736mv " $tmpdir /LICENSE" ../bin/win32-x64.LICENSE
2837mv " $tmpdir /README.txt" ../bin/win32-x64.README
2938
3039echo ' windows ia32'
3140echo ' downloading from github.com'
32- download ' https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/latest /ffmpeg-n5.0-latest -win32-gpl-5.0.zip' win32-ia32.zip
41+ download ' https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/autobuild-2022-04-30-14-19 /ffmpeg-n5.0.1-4-ga5ebb3d25e -win32-gpl-5.0.zip' win32-ia32.zip
3342echo ' extracting'
3443unzip -o -d ../bin -j win32-ia32.zip ' */bin/ffmpeg.exe'
3544mv ../bin/ffmpeg.exe ../bin/win32-ia32
@@ -82,7 +91,7 @@ curl -s -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/release' | jq --tab '.' >../b
8291
8392echo ' darwin arm64'
8493echo ' downloading from osxexperts.net'
85- download ' https://www.osxexperts.net/FFmpegARM .zip' darwin-arm64.zip
94+ download ' https://www.osxexperts.net/FFmpeg501ARM .zip' darwin-arm64.zip
8695echo ' extracting'
8796unzip -o -d ../bin -j darwin-arm64.zip ffmpeg
8897mv ../bin/ffmpeg ../bin/darwin-arm64
0 commit comments