21 lines
671 B
Bash
Raw Normal View History

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
FFMPEG_VER='5.1.2'
2023-02-18 00:04:49 -07:00
LINK_PATH="autobuild-2023-02-17-12-38/ffmpeg-n5.1.2-12-g7268323193-win64-gpl-shared-5.1"
FILENAME="${LINK_PATH##*/}"
2021-09-13 17:44:59 -06:00
echo "Downloading ffmpeg (${FFMPEG_VER})..."
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})"