Browse Source

Add script to build&pack windows plugins

tags/v1.0
falkTX 9 years ago
parent
commit
ecd734f9f0
2 changed files with 77 additions and 0 deletions
  1. +13
    -0
      utils/README-Windows.txt
  2. +64
    -0
      utils/pack-windows-dlls.sh

+ 13
- 0
utils/README-Windows.txt View File

@@ -0,0 +1,13 @@
#############################
## README for DPF Plugins ##
This folder contains audio plugins downloaded from https://github.com/DISTRHO/DPF-Plugins/releases
The included *.lv2 folders are a LV2 bundles and the *.dll files are VSTs.
Check your host documentation to know where to place these files.
Note that most hosts support VST but not 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.

+ 64
- 0
utils/pack-windows-dlls.sh View File

@@ -0,0 +1,64 @@
#!/bin/bash

set -e

MODGUIS=("Kars" "MVerb" "MVerb" "Nekobi" "PingPongPan")

# --------------------------------------------------------------------------------------------------------------------------------
# extract debs and pack them

function compressFolderAsZip() {
rm -f "$1.zip"
zip -X -r "$1" "$1"
rm -r "$1"
}

# --------------------------------------------------------------------------------------------------------------------------------

if [ "$1" == "" ]; then
echo Missing argument
exit
fi

# --------------------------------------------------------------------------------------------------------------------------------

cd bin

mkdir -p tmp
rm -rf tmp/*

NAME="$1"

_mingw32-build make -C .. clean
_mingw32-build make -C ..
for i in `ls *-vst.dll`; do mv $i `echo $i | awk 'sub("-vst","")'`; done
rm -rf *ladspa* *dssi* *vst*
mkdir -p "$NAME-win32bit"
mv *.dll *.lv2/ "$NAME-win32bit"
for MODGUI in ${MODGUIS[@]}; do
cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-win32bit"/$MODGUI.lv2/
cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-win32bit"/$MODGUI.lv2/modgui.ttl
done
cp "../utils/README-Windows.txt" "$NAME-win32bit/README.txt"
compressFolderAsZip "$NAME-win32bit"
rm -rf tmp/*

_mingw64-build make -C .. clean
_mingw64-build make -C .. -j4
for i in `ls *-vst.dll`; do mv $i `echo $i | awk 'sub("-vst","")'`; done
rm -rf *ladspa* *dssi* *vst*
mkdir -p "$NAME-win64bit"
mv *.dll *.lv2/ "$NAME-win64bit"
for MODGUI in ${MODGUIS[@]}; do
cp -rv ../modguis/$MODGUI.modgui/modgui "$NAME-win64bit"/$MODGUI.lv2/
cp -v ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-win64bit"/$MODGUI.lv2/modgui.ttl
done
cp "../utils/README-Windows.txt" "$NAME-win64bit/README.txt"
compressFolderAsZip "$NAME-win64bit"
rm -rf tmp/*

_mingw64-build make -C .. clean

cd ..

# --------------------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save