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
36 lines
1.7 KiB
Bash
Executable File
36 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
ffmpeg_version=3.4.2
|
|
|
|
(
|
|
mkdir -p ffmpeg-tmp/extracted &&
|
|
cd ffmpeg-tmp/extracted &&
|
|
(mkdir -p linux_ia32 && cd linux_ia32 &&
|
|
7z x ../../archives/ffmpeg_linux_ia32.tar.xz && tar xvfp ffmpeg_linux_ia32.tar) &&
|
|
(mkdir -p linux_x64 && cd linux_x64 &&
|
|
7z x ../../archives/ffmpeg_linux_x64.tar.xz && tar xvfp ffmpeg_linux_x64.tar) &&
|
|
(mkdir -p win32_ia32 && cd win32_ia32 &&
|
|
unzip ../../archives/ffmpeg_win32_ia32.zip) &&
|
|
(mkdir -p win32_x64 && cd win32_x64 &&
|
|
unzip ../../archives/ffmpeg_win32_x64.zip) &&
|
|
(mkdir -p darwin_x64 && cd darwin_x64 &&
|
|
7z x ../../archives/ffmpeg_darwin_x64.7z &&
|
|
7z x ../../archives/ffprobe_darwin_x64.7z)
|
|
) &&
|
|
cd ffmpeg-tmp &&
|
|
mkdir -p binaries/linux_ia32 &&
|
|
mkdir -p binaries/linux_x64 &&
|
|
mkdir -p binaries/win32_ia32 &&
|
|
mkdir -p binaries/win32_x64 &&
|
|
mkdir -p binaries/darwin_x64 &&
|
|
mv extracted/linux_ia32/ffmpeg-"${ffmpeg_version}"-32bit-static/ffmpeg binaries/linux_ia32 &&
|
|
mv extracted/linux_ia32/ffmpeg-"${ffmpeg_version}"-32bit-static/ffprobe binaries/linux_ia32 &&
|
|
mv extracted/linux_x64/ffmpeg-"${ffmpeg_version}"-64bit-static/ffmpeg binaries/linux_x64 &&
|
|
mv extracted/linux_x64/ffmpeg-"${ffmpeg_version}"-64bit-static/ffprobe binaries/linux_x64 &&
|
|
mv extracted/win32_ia32/ffmpeg-"${ffmpeg_version}"-win32-static/bin/ffmpeg.exe binaries/win32_ia32 &&
|
|
mv extracted/win32_ia32/ffmpeg-"${ffmpeg_version}"-win32-static/bin/ffprobe.exe binaries/win32_ia32 &&
|
|
mv extracted/win32_x64/ffmpeg-"${ffmpeg_version}"-win64-static/bin/ffmpeg.exe binaries/win32_x64 &&
|
|
mv extracted/win32_x64/ffmpeg-"${ffmpeg_version}"-win64-static/bin/ffprobe.exe binaries/win32_x64 &&
|
|
mv extracted/darwin_x64/ffmpeg binaries/darwin_x64 &&
|
|
mv extracted/darwin_x64/ffprobe binaries/darwin_x64 &&
|
|
echo Done
|