2018-12-12 21:31:20 -07:00
|
|
|
#!/usr/bin/bash -e
|
|
|
|
# install pefile
|
|
|
|
pip3 install pefile
|
|
|
|
|
2019-01-27 09:15:46 +08:00
|
|
|
# ffmpeg
|
2022-12-25 19:56:02 -07:00
|
|
|
FFMPEG_VER='5.1.2'
|
2023-02-18 14:31:06 +08:00
|
|
|
LINK_PATH="autobuild-2023-01-28-12-37/ffmpeg-n5.1.2-11-g30d432f205-win64-gpl-shared-5.1"
|
|
|
|
FILENAME="${LINK_PATH##*/}"
|
2021-09-13 17:44:59 -06:00
|
|
|
echo "Downloading ffmpeg (${FFMPEG_VER})..."
|
2023-02-18 14:31:06 +08:00
|
|
|
wget -c "https://github.com/BtbN/FFmpeg-Builds/releases/download/${LINK_PATH}.zip"
|
2021-09-13 17:44:59 -06:00
|
|
|
7z x "${FILENAME}.zip"
|
2019-01-27 09:15:46 +08:00
|
|
|
|
|
|
|
echo "Copying ffmpeg ${FFMPEG_VER} files to sysroot..."
|
2021-09-13 17:44:59 -06:00
|
|
|
cp -v "${FILENAME}"/bin/*.dll /usr/x86_64-w64-mingw32/lib/
|
|
|
|
cp -vr "${FILENAME}"/include /usr/x86_64-w64-mingw32/
|
|
|
|
cp -v "${FILENAME}"/lib/*.{a,def} /usr/x86_64-w64-mingw32/lib/
|
2019-01-27 09:15:46 +08:00
|
|
|
|
2018-12-12 21:31:20 -07:00
|
|
|
# remove the directory
|
|
|
|
ABS_PATH="$(readlink -f $0)"
|
|
|
|
rm -rf "$(dirname ${ABS_PATH})"
|