Skip to content

Commit d32fade

Browse files
Fix builder issues
1 parent e657fea commit d32fade

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build/index.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ echo ' downloading from gyan.dev'
3333
download 'https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-10-23-13-03/ffmpeg-n6.1.2-9-g4571c80b40-win64-gpl-6.1.zip' win32-x64.zip
3434
echo ' extracting'
3535
tmpdir=$(mktemp -d)
36-
7zr e -y -bd -o"$tmpdir" win32-x64.7z >/dev/null
36+
unzip -o -d $tmpdir -j win32-x64.zip '*/bin/ffmpeg.exe' '*/bin/ffprobe.exe'
37+
ls -lr ../bin
3738
mv "$tmpdir/ffmpeg.exe" ../bin/ffmpeg-win32-x64
3839
mv "$tmpdir/ffprobe.exe" ../bin/ffprobe-win32-x64
39-
mv "$tmpdir/LICENSE" ../bin/win32-x64.LICENSE
40-
mv "$tmpdir/README.txt" ../bin/win32-x64.README
40+
curl -fsSL 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n6.1:/LICENSE.md' -o ../bin/win32-x64.LICENSE
41+
curl -fsSL 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n6.1:/README.md' -o ../bin/win32-x64.README
4142

4243
echo 'windows ia32'
4344
echo ' downloading from github.com'
@@ -63,7 +64,7 @@ xzcat linux-arm64.tar.xz | $tar_exec -x -C ../bin --strip-components 2 --wildcar
6364
mv ../bin/ffmpeg ../bin/ffmpeg-linux-arm64
6465
mv ../bin/ffprobe ../bin/ffprobe-linux-arm64
6566
xzcat linux-arm64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/LICENSE.txt' >../bin/linux-arm64.LICENSE
66-
curl -s -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/README.md' -o ../bin/linux-x64.README
67+
curl -s -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/README.md' -o ../bin/linux-arm64.README
6768

6869
echo 'darwin x64'
6970
download 'https://www.osxexperts.net/ffmpeg71intel.zip' ffmpeg-darwin-x64.zip

0 commit comments

Comments
 (0)