install: установка зависимостей ffmpeg из vendor/debs

This commit is contained in:
root
2026-03-11 09:41:34 +00:00
parent 8868711783
commit 01febdb27f
10 changed files with 13 additions and 0 deletions
+13
View File
@@ -72,6 +72,19 @@ if [ "$NEED_XVFB" -eq 1 ]; then
fi
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)"
if [ -n "$FFMPEG_DEB" ]; then
echo "ffmpeg не найден в системе. Устанавливаю из $FFMPEG_DEB ..."