gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit ad4eb6a5a69f002867564dfde43161efffecc864
parent 680717a2dae857aab42ed078f0a4b7a53d9c5f09
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 22 Oct 2024 15:57:11 +0200

create script for Mac to remove quarantine attribute

Diffstat:
Msource/juce.cmake | 15+++++++++++++++
Asource/macsetup.command.in | 13+++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/source/juce.cmake b/source/juce.cmake @@ -86,6 +86,10 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec #juce::juce_recommended_warning_flags ) + set(MAC_SETUP_PRODUCT_NAME ${productName}) + set(macSetupFile ${CMAKE_CURRENT_BINARY_DIR}/macsetup.command) + configure_file(${JUCE_CMAKE_DIR}/macsetup.command.in ${macSetupFile}) + set(clapFeatures "") if(${isSynth}) list(APPEND clapFeatures instrument synthesizer) @@ -120,6 +124,7 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec if(USE_VST3) if(APPLE) install(TARGETS ${targetName}_VST3 DESTINATION . COMPONENT ${productName}-VST3) + install(FILES ${macSetupFile} DESTINATION . COMPONENT ${productName}-VST3) else() get_target_property(vst3OutputFolder ${targetName}_VST3 ARCHIVE_OUTPUT_DIRECTORY) if(UNIX) @@ -136,12 +141,19 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec if(MSVC OR APPLE) if(USE_VST2 AND JUCE_GLOBAL_VST2_SDK_PATH) install(TARGETS ${targetName}_VST DESTINATION . COMPONENT ${productName}-VST2) + if(APPLE) + install(FILES ${macSetupFile} DESTINATION . COMPONENT ${productName}-VST2) + endif() endif() if(USE_AU AND APPLE) install(TARGETS ${targetName}_AU DESTINATION . COMPONENT ${productName}-AU) + install(FILES ${macSetupFile} DESTINATION . COMPONENT ${productName}-AU) endif() if(USE_CLAP) install(TARGETS ${targetName}_CLAP DESTINATION . COMPONENT ${productName}-CLAP) + if(APPLE) + install(FILES ${macSetupFile} DESTINATION . COMPONENT ${productName}-CLAP) + endif() endif() elseif(UNIX) if(USE_VST2 AND JUCE_GLOBAL_VST2_SDK_PATH) @@ -167,6 +179,9 @@ macro(createJucePlugin targetName productName isSynth plugin4CC binaryDataProjec set(dest lib/lv2/) endif() install(DIRECTORY ${lv2OutputFolder}/${productName}.lv2 DESTINATION ${dest} COMPONENT ${productName}-LV2 FILES_MATCHING PATTERN ${pattern} PATTERN "*.ttl") + if(APPLE) + install(FILES ${macSetupFile} DESTINATION ${dest} COMPONENT ${productName}-LV2) + endif() endif() if(USE_AU AND APPLE AND ${isSynth}) diff --git a/source/macsetup.command.in b/source/macsetup.command.in @@ -0,0 +1,12 @@ +CURRENT_LOCATION=$(dirname "$0") +cd "$CURRENT_LOCATION" +echo +echo "Clearing extended attributes for ${MAC_SETUP_PRODUCT_NAME}" +echo "Location: $CURRENT_LOCATION" +echo +find "$CURRENT_LOCATION" -name '${MAC_SETUP_PRODUCT_NAME}*' \ + -exec echo "Clearing attributes for: {}" \; \ + -exec xattr -c {} \; \ + 2>&2 +echo +echo "Done." +\ No newline at end of file