Install script: check all dependencies (love, git, librsvg)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e7daea1396
commit
c8949447b5
1 changed files with 11 additions and 6 deletions
17
install.sh
17
install.sh
|
|
@ -41,14 +41,19 @@ fi
|
||||||
# ── INSTALL ──
|
# ── INSTALL ──
|
||||||
echo "=== Installing $DISPLAY_NAME ==="
|
echo "=== Installing $DISPLAY_NAME ==="
|
||||||
|
|
||||||
# Check for Love2D
|
# Install dependencies
|
||||||
if ! command -v love &>/dev/null; then
|
DEPS=()
|
||||||
echo "Installing Love2D..."
|
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
|
if command -v pacman &>/dev/null; then
|
||||||
sudo pacman -S --noconfirm love
|
sudo pacman -S --noconfirm "${DEPS[@]}"
|
||||||
else
|
else
|
||||||
echo "Error: Love2D (love) is not installed and pacman not found."
|
echo "Error: missing ${DEPS[*]} and pacman not found."
|
||||||
echo "Install Love2D manually and re-run this script."
|
echo "Install them manually and re-run this script."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue