forked from eugeneware/ffmpeg-static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.sh
executable file
·54 lines (45 loc) · 2.01 KB
/
index.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
set +e
cd $(dirname $0)
tar_exec=$(command -v gtar)
if [ $? -ne 0 ]; then
tar_exec=$(command -v tar)
fi
download () {
curl -L -# -A 'https://github.com/eugeneware/ffmpeg-static' -o $2 $1
}
set -x
echo 'windows x64'
echo ' downloading from ffmpeg.zeranoe.com'
download 'https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-latest-win64-static.zip' win32-x64.zip
echo ' extracting'
unzip -o -d ../bin/win32/x64 -j win32-x64.zip '**/ffmpeg.exe'
echo 'windows ia32'
echo ' downloading from ffmpeg.zeranoe.com'
download 'https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-latest-win32-static.zip' win32-ia32.zip
echo ' extracting'
unzip -o -d ../bin/win32/ia32 -j win32-ia32.zip '**/ffmpeg.exe'
echo 'linux x64'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz' linux-x64.tar.xz
echo ' extracting'
$tar_exec -xz -C ../bin/linux/x64 --strip-components 1 -f linux-x64.tar.xz --wildcards '*/ffmpeg'
echo 'linux ia32'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-i686-static.tar.xz' linux-ia32.tar.xz
echo ' extracting'
$tar_exec -xz -C ../bin/linux/ia32 --strip-components 1 -f linux-ia32.tar.xz --wildcards '*/ffmpeg'
echo 'linux arm'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-armhf-static.tar.xz' linux-arm.tar.xz
echo ' extracting'
$tar_exec -xz -C ../bin/linux/arm --strip-components 1 -f linux-arm.tar.xz --wildcards '*/ffmpeg'
echo 'linux arm64'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz' linux-arm64.tar.xz
echo ' extracting'
$tar_exec -xz -C ../bin/linux/arm64 --strip-components 1 -f linux-arm64.tar.xz --wildcards '*/ffmpeg'
echo 'darwin x64'
echo ' downloading from evermeet.cx'
download "https://evermeet.cx/ffmpeg/getrelease" darwin-x64-ffmpeg.7z
7zr e -y -bd -o../bin/darwin/x64 darwin-x64-ffmpeg.7z >/dev/null