Browse Source

Add CLAP to macOS packaging

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/merge
falkTX 3 years ago
parent
commit
af38050160
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 15 additions and 2 deletions
  1. +11
    -2
      utils/package-osx-bundles.sh
  2. +4
    -0
      utils/plugin.pkg/package.xml.in

+ 11
- 2
utils/package-osx-bundles.sh View File

@@ -15,12 +15,14 @@ SNAME="$(echo ${NAME} | tr -d ' ' | tr '/' '-')"
rm -rf lv2
rm -rf vst2
rm -rf vst3
rm -rf clap

mkdir lv2 vst2 vst3
mkdir lv2 vst2 vst3 clap
cp -RL *.lv2 lv2/
cp -RL *.vst vst2/
cp -RL *.vst3 vst3/
rm -rf *.lv2 *.vst *.vst3
cp -RL *.clap clap/
rm -rf *.lv2 *.vst *.vst3 *.clap

pkgbuild \
--identifier "studio.kx.distrho.plugins.${SNAME}.lv2bundles" \
@@ -40,6 +42,12 @@ pkgbuild \
--root "${PWD}/vst3/" \
../dpf-${SNAME}-vst3bundles.pkg

pkgbuild \
--identifier "studio.kx.distrho.plugins.${SNAME}.clapbundles" \
--install-location "/Library/Audio/Plug-Ins/CLAP/" \
--root "${PWD}/clap/" \
../dpf-${SNAME}-clapbundles.pkg

cd ..

DPF_UTILS_DIR=$(dirname ${0})
@@ -52,6 +60,7 @@ sed -e "s|@builddir@|${PWD}/build|" \
-e "s|@lv2bundleref@|dpf-${SNAME}-lv2bundles.pkg|" \
-e "s|@vst2bundleref@|dpf-${SNAME}-vst2bundles.pkg|" \
-e "s|@vst3bundleref@|dpf-${SNAME}-vst3bundles.pkg|" \
-e "s|@clapbundleref@|dpf-${SNAME}-clapbundles.pkg|" \
-e "s|@name@|${NAME}|g" \
-e "s|@sname@|${SNAME}|g" \
${DPF_UTILS_DIR}/plugin.pkg/package.xml.in > build/package.xml


+ 4
- 0
utils/plugin.pkg/package.xml.in View File

@@ -14,9 +14,13 @@
<choice id="studio.kx.distrho.@sname@-vst3" title="VST3" description="Install VST3 plugins" visible="true">
<pkg-ref id="studio.kx.distrho.@sname@-vst3bundles" version="0">@vst3bundleref@</pkg-ref>
</choice>
<choice id="studio.kx.distrho.@sname@-clap" title="CLAP" description="Install CLAP plugins" visible="true">
<pkg-ref id="studio.kx.distrho.@sname@-clapbundles" version="0">@clapbundleref@</pkg-ref>
</choice>
<choices-outline>
<line choice="studio.kx.distrho.@sname@-lv2"/>
<line choice="studio.kx.distrho.@sname@-vst2"/>
<line choice="studio.kx.distrho.@sname@-vst3"/>
<line choice="studio.kx.distrho.@sname@-clap"/>
</choices-outline>
</installer-gui-script>

Loading…
Cancel
Save