From c8949447b5e58943cff1723858d9ea743a4c3a0a Mon Sep 17 00:00:00 2001 From: 28allday Date: Mon, 13 Apr 2026 15:40:50 +0100 Subject: [PATCH] Install script: check all dependencies (love, git, librsvg) Co-Authored-By: Claude Opus 4.6 (1M context) --- install.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index f79f7f6..2817a4e 100755 --- a/install.sh +++ b/install.sh @@ -41,14 +41,19 @@ fi # ── INSTALL ── echo "=== Installing $DISPLAY_NAME ===" -# Check for Love2D -if ! command -v love &>/dev/null; then - echo "Installing Love2D..." +# Install dependencies +DEPS=() +command -v love &>/dev/null || DEPS+=(love) +command -v git &>/dev/null || DEPS+=(git) +command -v rsvg-convert &>/dev/null || DEPS+=(librsvg) + +if [ ${#DEPS[@]} -gt 0 ]; then + echo "Installing dependencies: ${DEPS[*]}" if command -v pacman &>/dev/null; then - sudo pacman -S --noconfirm love + sudo pacman -S --noconfirm "${DEPS[@]}" else - echo "Error: Love2D (love) is not installed and pacman not found." - echo "Install Love2D manually and re-run this script." + echo "Error: missing ${DEPS[*]} and pacman not found." + echo "Install them manually and re-run this script." exit 1 fi fi