@@ -234,14 +234,22 @@ build/Carla.app/Contents/MacOS/% build/Carla-Control.app/Contents/MacOS/%: bin/% | |||||
# ---------------------------------------------------------------------------------------------------------------------------- | # ---------------------------------------------------------------------------------------------------------------------------- | ||||
# Plugin rules | # Plugin rules | ||||
build/Carla-Plugins.pkg: build/carla-lv2.pkg build/carla-vst2fx.pkg build/carla-vst2syn.pkg | |||||
MACOS_PACKAGE_EXP = -e 's/version="0"/version="$(VERSION)"/' | |||||
ifeq ($(CPU_ARM64),true) | |||||
MACOS_PACKAGE_EXP += -e 's/hostArchitectures="x86_64"/hostArchitectures="arm64,x86_64"/' | |||||
endif | |||||
build/Carla-Plugins.pkg: build/carla-lv2.pkg build/carla-vst2fx.pkg build/carla-vst2syn.pkg build/package.xml | |||||
productbuild \ | productbuild \ | ||||
--distribution data/macos/package.xml \ | |||||
--distribution build/package.xml \ | |||||
--identifier studio.kx.carla \ | --identifier studio.kx.carla \ | ||||
--package-path "build" \ | --package-path "build" \ | ||||
--version "$(VERSION)" \ | --version "$(VERSION)" \ | ||||
"$@" | "$@" | ||||
build/package.xml: data/macos/package.xml | |||||
sed $(MACOS_PACKAGE_EXP) $< > $@ | |||||
build/carla-lv2.pkg: $(_CARLA_LV2_PLUGIN_FILES:%=build/%) | build/carla-lv2.pkg: $(_CARLA_LV2_PLUGIN_FILES:%=build/%) | ||||
pkgbuild \ | pkgbuild \ | ||||
--identifier "studio.kx.carla.lv2" \ | --identifier "studio.kx.carla.lv2" \ | ||||
@@ -4,10 +4,10 @@ | |||||
<domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true" /> | <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true" /> | ||||
<options customize="always" hostArchitectures="x86_64" require-scripts="false" rootVolumeOnly="true" /> | <options customize="always" hostArchitectures="x86_64" require-scripts="false" rootVolumeOnly="true" /> | ||||
<pkg-ref id="studio.kx.carla" /> | <pkg-ref id="studio.kx.carla" /> | ||||
<choice id="studio.kx.carla.lv2" title="LV2 plugin" visible="true"> | |||||
<choice id="studio.kx.carla.lv2" title="LV2 plugin" description='Carla as LV2 plugin' visible="true"> | |||||
<pkg-ref id="studio.kx.carla.lv2" version="0">carla-lv2.pkg</pkg-ref> | <pkg-ref id="studio.kx.carla.lv2" version="0">carla-lv2.pkg</pkg-ref> | ||||
</choice> | </choice> | ||||
<choice id="studio.kx.carla.vst2" title="VST2 plugin" visible="true"> | |||||
<choice id="studio.kx.carla.vst2" title="VST2 plugin" description='Carla as VST2 plugin (VST "Shell")' visible="true"> | |||||
<pkg-ref id="studio.kx.carla.vst2fx" version="0">carla-vst2fx.pkg</pkg-ref> | <pkg-ref id="studio.kx.carla.vst2fx" version="0">carla-vst2fx.pkg</pkg-ref> | ||||
<pkg-ref id="studio.kx.carla.vst2syn" version="0">carla-vst2syn.pkg</pkg-ref> | <pkg-ref id="studio.kx.carla.vst2syn" version="0">carla-vst2syn.pkg</pkg-ref> | ||||
</choice> | </choice> | ||||