install: установка зависимостей ffmpeg из vendor/debs
This commit is contained in:
@@ -72,6 +72,19 @@ if [ "$NEED_XVFB" -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$NEED_FFMPEG" -eq 1 ]; then
|
if [ "$NEED_FFMPEG" -eq 1 ]; then
|
||||||
|
# Сначала ставим зависимости ffmpeg из vendor/debs, если они есть
|
||||||
|
for dep in libavcodec60 libavdevice60 libavfilter9 libavformat60 libavutil58 libpostproc57 libsdl2-2.0-0 libswresample4 libswscale7; do
|
||||||
|
DEB_PATH="$(ls "$REPO_ROOT"/vendor/debs/${dep}_*.deb 2>/dev/null | head -n1 || true)"
|
||||||
|
if [ -n "$DEB_PATH" ]; then
|
||||||
|
echo "Устанавливаю зависимость ffmpeg: $DEB_PATH ..."
|
||||||
|
if dpkg -i "$DEB_PATH"; then
|
||||||
|
echo "Пакет зависимости $dep установлен."
|
||||||
|
else
|
||||||
|
echo "Не удалось установить пакет зависимости $dep из $DEB_PATH. Проверьте зависимости пакета." >&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
FFMPEG_DEB="$(ls "$REPO_ROOT"/vendor/debs/ffmpeg_*.deb 2>/dev/null | head -n1 || true)"
|
FFMPEG_DEB="$(ls "$REPO_ROOT"/vendor/debs/ffmpeg_*.deb 2>/dev/null | head -n1 || true)"
|
||||||
if [ -n "$FFMPEG_DEB" ]; then
|
if [ -n "$FFMPEG_DEB" ]; then
|
||||||
echo "ffmpeg не найден в системе. Устанавливаю из $FFMPEG_DEB ..."
|
echo "ffmpeg не найден в системе. Устанавливаю из $FFMPEG_DEB ..."
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user