commit 7d8914796d1052e6d81a3a0049933baf6e77d807 parent 257b79e16ba62dfaf320fa6a2f5b10f00e0f0095 Author: falkTX <falktx@falktx.com> Date: Sun, 18 Jul 2021 23:44:12 +0100 Fix pkg script Diffstat:
M | utils/package-osx-bundles.sh | | | 18 | +++++++++++------- |
M | utils/plugin.pkg/package.xml.in | | | 18 | +++++++++--------- |
2 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/utils/package-osx-bundles.sh b/utils/package-osx-bundles.sh @@ -23,25 +23,29 @@ pkgbuild \ --identifier "studio.kx.distrho.plugins.${SNAME}.lv2bundles" \ --install-location "/Library/Audio/Plug-Ins/LV2/" \ --root "${PWD}/lv2/" \ - ../dpf-${sname}-lv2bundles.pkg + ../dpf-${SNAME}-lv2bundles.pkg pkgbuild \ --identifier "studio.kx.distrho.plugins.${SNAME}.vst2bundles" \ --install-location "/Library/Audio/Plug-Ins/VST/" \ --root "${PWD}/vst2/" \ - ../dpf-${sname}-vst2bundles.pkg + ../dpf-${SNAME}-vst2bundles.pkg cd .. -sed -e "s|@name@|${NAME}|" utils/plugin.pkg/welcome.txt.in > build/welcome.txt +DPF_UTILS_DIR=$(dirname ${0}) + +sed -e "s|@name@|${NAME}|" ${DPF_UTILS_DIR}/plugin.pkg/welcome.txt.in > build/welcome.txt sed -e "s|@builddir@|${PWD}/build|" \ - -e "s|@lv2bundleref@|dpf-${sname}-lv2bundles.pkg|" \ - -e "s|@vst2bundleref@|dpf-${sname}-vst2bundles.pkg|" \ + -e "s|@lv2bundleref@|dpf-${SNAME}-lv2bundles.pkg|" \ + -e "s|@vst2bundleref@|dpf-${SNAME}-vst2bundles.pkg|" \ + -e "s|@name@|${NAME}|g" \ -e "s|@sname@|${SNAME}|g" \ - utils/plugin.pkg/package.xml.in > build/package.xml + ${DPF_UTILS_DIR}/plugin.pkg/package.xml.in > build/package.xml productbuild \ --distribution build/package.xml \ - --identifier "studio.kx.distrho.plugins.${SNAME}" \ + --identifier "studio.kx.distrho.${SNAME}" \ --package-path "${PWD}" \ + --version 0 \ ${SNAME}-macOS.pkg diff --git a/utils/plugin.pkg/package.xml.in b/utils/plugin.pkg/package.xml.in @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="utf-8" standalone="no"?> <installer-gui-script minSpecVersion="1"> - <title>DPF-based audio plugins</title> + <title>@name@</title> <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true" /> - <options customize="always" hostArchitectures="x86_64;arm64" require-scripts="false" rootVolumeOnly="true" /> - <pkg-ref id="studio.kx.distrho.plugins.@sname@" /> + <options customize="always" hostArchitectures="x86_64" require-scripts="false" rootVolumeOnly="true" /> + <pkg-ref id="studio.kx.distrho.@sname@" /> <welcome file="@builddir@/welcome.txt" mime-type="text/plain" /> - <choice id="studio.kx.distrho.plugins.@sname@.lv2" title="LV2" description="Install LV2 plugins" visible="true"> - <pkg-ref id="studio.kx.distrho.plugins.@sname@.lv2bundles" version="0">@lv2bundleref@</pkg-ref> + <choice id="studio.kx.distrho.@sname@-lv2" title="LV2" description="Install LV2 plugins" visible="true"> + <pkg-ref id="studio.kx.distrho.@sname@-lv2bundles" version="0">@lv2bundleref@</pkg-ref> </choice> - <choice id="studio.kx.distrho.plugins.@SNAME@.vst2" title="VST2" description="Install VST2 plugins" visible="true"> - <pkg-ref id="studio.kx.distrho.plugins.@sname@.vst2bundles" version="0">@vst2bundleref@</pkg-ref> + <choice id="studio.kx.distrho.@sname@-vst2" title="VST2" description="Install VST2 plugins" visible="true"> + <pkg-ref id="studio.kx.distrho.@sname@-vst2bundles" version="0">@vst2bundleref@</pkg-ref> </choice> <choices-outline> - <line choice="studio.kx.distrho.plugins.@sname@.lv2"/> - <line choice="studio.kx.distrho.plugins.@sname@.vst2"/> + <line choice="studio.kx.distrho.@sname@-lv2"/> + <line choice="studio.kx.distrho.@sname@-vst2"/> </choices-outline> </installer-gui-script>