fix: move manual dependency installation outside of download block to ensure they are always verified

This commit is contained in:
Timothy Hofland
2026-03-13 14:16:57 +01:00
parent 01da5b6044
commit 043e2123f4

View File

@ -219,9 +219,11 @@ if [ ! -d "openFrameworks" ]; then
sudo -u "$REAL_USER" tar -xzf "$OF_FILE" sudo -u "$REAL_USER" tar -xzf "$OF_FILE"
sudo -u "$REAL_USER" mv of_v0.12.1_linux*_release openFrameworks sudo -u "$REAL_USER" mv of_v0.12.1_linux*_release openFrameworks
sudo -u "$REAL_USER" rm "$OF_FILE" sudo -u "$REAL_USER" rm "$OF_FILE"
fi
echo "Installing modern dependencies for Debian Trixie..." # ALWAYS verify dependencies, even if OF is already present
if command -v apt-get > /dev/null; then echo "Ensuring modern dependencies for Debian Trixie..."
if command -v apt-get > /dev/null; then
DEBIAN_FRONTEND=noninteractive apt-get install -y \ DEBIAN_FRONTEND=noninteractive apt-get install -y \
libmpg123-dev libsndfile1-dev libopenal-dev libassimp-dev \ libmpg123-dev libsndfile1-dev libopenal-dev libassimp-dev \
libglew-dev libglfw3-dev liburiparser-dev \ libglew-dev libglfw3-dev liburiparser-dev \
@ -234,9 +236,6 @@ if [ ! -d "openFrameworks" ]; then
libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \ libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \
libpulse-dev libudev-dev libfreeimage-dev librtaudio-dev \ libpulse-dev libudev-dev libfreeimage-dev librtaudio-dev \
freeglut3-dev libxxf86vm-dev freeglut3-dev libxxf86vm-dev
fi
else
echo "OpenFrameworks already present. Skipping download."
fi fi
echo "Downloading and building ofxPiMapper Addon..." echo "Downloading and building ofxPiMapper Addon..."