Add qrencode dependency to install script

This commit is contained in:
Stu Leak 2026-01-04 04:20:05 -05:00
parent 0fada2a9fe
commit a9926dbdfc

View File

@ -171,6 +171,9 @@ else
if ! command -v ffmpeg &> /dev/null; then if ! command -v ffmpeg &> /dev/null; then
missing_deps+=("ffmpeg") missing_deps+=("ffmpeg")
fi fi
if ! command -v qrencode &> /dev/null; then
missing_deps+=("qrencode")
fi
if [ -z "$SKIP_DVD_TOOLS" ]; then if [ -z "$SKIP_DVD_TOOLS" ]; then
# Check if DVD tools are already installed # Check if DVD tools are already installed
if command -v dvdauthor &> /dev/null && command -v xorriso &> /dev/null; then if command -v dvdauthor &> /dev/null && command -v xorriso &> /dev/null; then
@ -252,33 +255,33 @@ else
if command -v apt-get &> /dev/null; then if command -v apt-get &> /dev/null; then
sudo apt-get update sudo apt-get update
if [ "$SKIP_DVD_TOOLS" = true ]; then if [ "$SKIP_DVD_TOOLS" = true ]; then
sudo apt-get install -y ffmpeg sudo apt-get install -y ffmpeg qrencode
else else
sudo apt-get install -y ffmpeg dvdauthor xorriso sudo apt-get install -y ffmpeg dvdauthor xorriso qrencode
fi fi
elif command -v dnf &> /dev/null; then elif command -v dnf &> /dev/null; then
if [ "$SKIP_DVD_TOOLS" = true ]; then if [ "$SKIP_DVD_TOOLS" = true ]; then
sudo dnf install -y ffmpeg sudo dnf install -y ffmpeg qrencode
else else
sudo dnf install -y ffmpeg dvdauthor xorriso sudo dnf install -y ffmpeg dvdauthor xorriso qrencode
fi fi
elif command -v pacman &> /dev/null; then elif command -v pacman &> /dev/null; then
if [ "$SKIP_DVD_TOOLS" = true ]; then if [ "$SKIP_DVD_TOOLS" = true ]; then
sudo pacman -Sy --noconfirm ffmpeg sudo pacman -Sy --noconfirm ffmpeg qrencode
else else
sudo pacman -Sy --noconfirm ffmpeg dvdauthor cdrtools sudo pacman -Sy --noconfirm ffmpeg dvdauthor cdrtools qrencode
fi fi
elif command -v zypper &> /dev/null; then elif command -v zypper &> /dev/null; then
if [ "$SKIP_DVD_TOOLS" = true ]; then if [ "$SKIP_DVD_TOOLS" = true ]; then
sudo zypper install -y ffmpeg sudo zypper install -y ffmpeg qrencode
else else
sudo zypper install -y ffmpeg dvdauthor xorriso sudo zypper install -y ffmpeg dvdauthor xorriso qrencode
fi fi
elif command -v brew &> /dev/null; then elif command -v brew &> /dev/null; then
if [ "$SKIP_DVD_TOOLS" = true ]; then if [ "$SKIP_DVD_TOOLS" = true ]; then
brew install ffmpeg brew install ffmpeg qrencode
else else
brew install ffmpeg dvdauthor xorriso brew install ffmpeg dvdauthor xorriso qrencode
fi fi
else else
echo -e "${RED}[ERROR] No supported package manager found.${NC}" echo -e "${RED}[ERROR] No supported package manager found.${NC}"
@ -366,6 +369,11 @@ else
echo "Please install: ffmpeg" echo "Please install: ffmpeg"
exit 1 exit 1
fi fi
if ! command -v qrencode &> /dev/null; then
echo -e "${RED}[ERROR] Missing required dependencies after install attempt.${NC}"
echo "Please install: qrencode"
exit 1
fi
if [ "$SKIP_DVD_TOOLS" = false ]; then if [ "$SKIP_DVD_TOOLS" = false ]; then
if ! command -v dvdauthor &> /dev/null; then if ! command -v dvdauthor &> /dev/null; then
echo -e "${RED}[ERROR] Missing required dependencies after install attempt.${NC}" echo -e "${RED}[ERROR] Missing required dependencies after install attempt.${NC}"