@@ -7,29 +7,38 @@ tar_exec=$(command -v gtar)
7
7
if [ $? -ne 0 ]; then
8
8
tar_exec=$( command -v tar)
9
9
fi
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
10
18
set -e
11
19
echo using tar executable at $tar_exec
20
+ echo using 7z executable at $p7zip_exec
12
21
13
22
mkdir -p ../bin
14
23
15
24
download () {
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
17
26
}
18
27
19
28
echo ' windows x64'
20
29
echo ' downloading from gyan.dev'
21
30
download ' https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z' win32-x64.7z
22
31
echo ' extracting'
23
32
tmpdir=$( 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
25
34
mv " $tmpdir /ffmpeg.exe" ../bin/win32-x64
26
35
chmod +x ../bin/win32-x64
27
36
mv " $tmpdir /LICENSE" ../bin/win32-x64.LICENSE
28
37
mv " $tmpdir /README.txt" ../bin/win32-x64.README
29
38
30
39
echo ' windows ia32'
31
40
echo ' 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
33
42
echo ' extracting'
34
43
unzip -o -d ../bin -j win32-ia32.zip ' */bin/ffmpeg.exe'
35
44
mv ../bin/ffmpeg.exe ../bin/win32-ia32
@@ -82,7 +91,7 @@ curl -s -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/release' | jq --tab '.' >../b
82
91
83
92
echo ' darwin arm64'
84
93
echo ' 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
86
95
echo ' extracting'
87
96
unzip -o -d ../bin -j darwin-arm64.zip ffmpeg
88
97
mv ../bin/ffmpeg ../bin/darwin-arm64
0 commit comments