From a0997910aa6fdc11a210cbf11685005622d280d7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 17 Apr 2016 18:42:42 +0200 Subject: [PATCH] Add script to build & pack linux release --- utils/README-Linux.txt | 13 ++++++++ utils/pack-linux-sos.sh | 72 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 utils/README-Linux.txt create mode 100755 utils/pack-linux-sos.sh diff --git a/utils/README-Linux.txt b/utils/README-Linux.txt new file mode 100644 index 0000000..78b204e --- /dev/null +++ b/utils/README-Linux.txt @@ -0,0 +1,13 @@ +############################# +## README for DPF Plugins ## + +This folder contains audio plugins downloaded from https://github.com/DISTRHO/DPF-Plugins/releases + +The plugins are separated by their type - ladspa plugins are in the ladspa folder, etc. +Check your host documentation to know where to place these files. +Note that most hosts support LADSPA or VST but not DSSI or LV2. + + +If your host is not listing these plugins, make sure the binaries you downloaded match your host architecture. +32bit plugins go into 32bit hosts, same for 64bit. +Some hosts are able to load plugins with different architecture, but that's the exception rather than the rule. diff --git a/utils/pack-linux-sos.sh b/utils/pack-linux-sos.sh new file mode 100755 index 0000000..91fefeb --- /dev/null +++ b/utils/pack-linux-sos.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +set -e + +MODGUIS=("Kars" "MVerb" "MVerb" "Nekobi" "PingPongPan") + +# -------------------------------------------------------------------------------------------------------------------------------- +# extract debs and pack them + +function compressFolderAsTarGz() { +rm -f "$1.tar.gz" +tar cf "$1.tar.gz" "$1" +rm -r "$1" +} + +# -------------------------------------------------------------------------------------------------------------------------------- + +if [ "$1" == "" ]; then +echo Missing argument +exit +fi + +# -------------------------------------------------------------------------------------------------------------------------------- + +cd bin + +mkdir -p tmp +rm -rf tmp/* + +NAME="$1" + +make -C .. clean +CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" make HAVE_JACK=false HAVE_PROJM=false -C .. -j 4 +mkdir -p "$NAME-linux32bit/ladspa" +mkdir -p "$NAME-linux32bit/dssi" +mkdir -p "$NAME-linux32bit/lv2" +mkdir -p "$NAME-linux32bit/vst" +mv *-ladspa.so "$NAME-linux32bit/ladspa" +mv *-dssi *-dssi.so "$NAME-linux32bit/dssi" +mv *.lv2/ "$NAME-linux32bit/lv2" +mv *-vst.so "$NAME-linux32bit/vst" +for MODGUI in ${MODGUIS[@]}; do + cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-linux32bit"/lv2/$MODGUI.lv2/ + cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-linux32bit"/lv2/$MODGUI.lv2/modgui.ttl +done +cp "../utils/README-Linux.txt" "$NAME-linux32bit/README.txt" +compressFolderAsTarGz "$NAME-linux32bit" +rm -rf tmp/* + +make -C .. clean +CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" make -C .. -j 4 HAVE_JACK=false HAVE_PROJM=false +mkdir -p "$NAME-linux64bit/ladspa" +mkdir -p "$NAME-linux64bit/dssi" +mkdir -p "$NAME-linux64bit/lv2" +mkdir -p "$NAME-linux64bit/vst" +mv *-ladspa.so "$NAME-linux64bit/ladspa" +mv *-dssi *-dssi.so "$NAME-linux64bit/dssi" +mv *.lv2/ "$NAME-linux64bit/lv2" +mv *-vst.so "$NAME-linux64bit/vst" +for MODGUI in ${MODGUIS[@]}; do + cp -rv ../modguis/$MODGUI.modgui/modgui "$NAME-linux64bit"/lv2/$MODGUI.lv2/ + cp -v ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-linux64bit"/lv2/$MODGUI.lv2/modgui.ttl +done +cp "../utils/README-Linux.txt" "$NAME-linux64bit/README.txt" +compressFolderAsTarGz "$NAME-linux64bit" +rm -rf tmp/* + +make -C .. clean + +cd .. + +# --------------------------------------------------------------------------------------------------------------------------------