Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix for slPlugins build script for non-Debian/Ubuntu Linux systems
diff --git a/ci/build.sh b/ci/build.sh
index b66d55c..2251fac 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -1,12 +1,19 @@
#!/bin/bash -e
# linux specific stiff
-if [ $OS = "linux" ]; then
+if [ "$(uname -s)" = "Linux" ]; then
export GDK_BACKEND=x11
+ if [ -e /etc/debian_version ]; then
sudo apt-get update
- sudo apt-get install clang git ladspa-sdk freeglut3-dev g++ libasound2-dev libcurl4-openssl-dev libfreetype6-dev libjack-jackd2-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev libxrandr-dev mesa-common-dev webkit2gtk-4.0 juce-tools xvfb
+ sudo apt-get install clang git ladspa-sdk freeglut3-dev g++ \
+ libasound2-dev libcurl4-openssl-dev libfreetype6-dev \
+ libjack-jackd2-dev libx11-dev libxcomposite-dev libxcursor-dev \
+ libxinerama-dev libxrandr-dev mesa-common-dev webkit2gtk-4.0 \
+ juce-tools xvfb
+ fi
+ OS=linux
Xvfb :99 &
export DISPLAY=:99
sleep 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.