fix: remove broken ofxOfelia dependency and add Arch Linux support for OpenFrameworks
This commit is contained in:
@ -248,23 +248,28 @@ else
|
||||
cd "$REAL_HOME"
|
||||
if [ ! -d "openFrameworks" ]; then
|
||||
sudo -u "$REAL_USER" git clone --depth 1 --branch master https://github.com/openframeworks/openFrameworks.git
|
||||
# Only run apt-get if we are on a Debian-based system
|
||||
|
||||
if command -v apt-get > /dev/null; then
|
||||
echo "Debian-based system detected. Installing dependencies..."
|
||||
cd openFrameworks/scripts/linux/debian
|
||||
./install_dependencies.sh -y
|
||||
cd ../../../
|
||||
cd scripts/linux/debian
|
||||
./install_codecs.sh
|
||||
cd ../../../
|
||||
sudo -u "$REAL_USER" make -j1 -C libs/openFrameworksCompiled/project/linux64
|
||||
elif command -v pacman > /dev/null; then
|
||||
echo "Arch-based system detected. Installing dependencies..."
|
||||
cd openFrameworks/scripts/linux/archlinux
|
||||
sudo ./install_dependencies.sh --noconfirm
|
||||
else
|
||||
echo "WARNING: Non-Debian system detected. Please install OpenFrameworks dependencies manually."
|
||||
echo "WARNING: Unsupported system detected. Please install OpenFrameworks dependencies manually."
|
||||
fi
|
||||
|
||||
cd "$REAL_HOME/openFrameworks"
|
||||
sudo -u "$REAL_USER" make -j1 -C libs/openFrameworksCompiled/project/linux64
|
||||
fi
|
||||
|
||||
cd "$REAL_HOME/openFrameworks/addons"
|
||||
[ ! -d "ofxPiMapper" ] && sudo -u "$REAL_USER" git clone https://github.com/kr15h/ofxPiMapper.git
|
||||
[ ! -d "ofxOfelia" ] && sudo -u "$REAL_USER" git clone https://github.com/vanderlin/ofxOfelia.git
|
||||
if [ ! -d "ofxPiMapper" ]; then
|
||||
sudo -u "$REAL_USER" git clone https://github.com/kr15h/ofxPiMapper.git
|
||||
fi
|
||||
|
||||
# Patch and Build
|
||||
cd "$REAL_HOME/openFrameworks/addons/ofxPiMapper"
|
||||
|
||||
Reference in New Issue
Block a user