mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 10:22:31 +01:00
305fae7a94
Use babel-preset-env Upgrade icon-gen add package.lock (i also tried yarn but it doesnt work well with electron packager) extract version field in bash scripts
26 lines
1.1 KiB
Bash
Executable File
26 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
ffmpeg_version=3.4.2
|
|
|
|
ffmpeg_linux_ia32=https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-32bit-static.tar.xz
|
|
ffmpeg_linux_x64=https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
|
|
ffmpeg_darwin_x64=http://evermeet.cx/ffmpeg/ffmpeg-"${ffmpeg_version}".7z
|
|
ffmpeg_win32_ia32=https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-"${ffmpeg_version}"-win32-static.zip
|
|
ffmpeg_win32_x64=https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-"${ffmpeg_version}"-win64-static.zip
|
|
ffprobe_darwin_x64=http://evermeet.cx/ffmpeg/ffprobe-"${ffmpeg_version}".7z
|
|
|
|
OUT_DIR=ffmpeg-tmp/archives
|
|
|
|
if [ -d "$OUT_DIR" ]; then
|
|
echo "$OUT_DIR exists, skipping download."
|
|
exit
|
|
fi
|
|
|
|
mkdir -p "$OUT_DIR" &&
|
|
(cd "$OUT_DIR" &&
|
|
wget -O ffmpeg_linux_ia32.tar.xz "${ffmpeg_linux_ia32}" &&
|
|
wget -O ffmpeg_linux_x64.tar.xz "${ffmpeg_linux_x64}" &&
|
|
wget -O ffmpeg_darwin_x64.7z "${ffmpeg_darwin_x64}" &&
|
|
wget -O ffmpeg_win32_ia32.zip "${ffmpeg_win32_ia32}" &&
|
|
wget -O ffmpeg_win32_x64.zip "${ffmpeg_win32_x64}" &&
|
|
wget -O ffprobe_darwin_x64.7z "${ffprobe_darwin_x64}")
|