Skip to content

Commit 6a1a63d

Browse files
committed
Don't create filetype associations for custom plugins
1 parent 01bf7e2 commit 6a1a63d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ file(GLOB plugdata_standalone_sources
425425
${SOURCES_DIRECTORY}/Standalone/InternalSynth.h)
426426
source_group("Source\\Standalone" FILES ${plugdata_standalone_sources})
427427

428+
if(NOT ${BUILD_CUSTOM_PLUGIN})
429+
set(DOCUMENT_EXTENSIONS "pd plugdata")
430+
else()
431+
428432
if(NOT "${CMAKE_SYSTEM_NAME}" MATCHES "iOS")
429433
set(AU_EFFECT_TYPE kAudioUnitType_MusicEffect)
430434
juce_add_gui_app(plugdata_standalone
@@ -435,7 +439,7 @@ juce_add_gui_app(plugdata_standalone
435439
CAMERA_PERMISSION_ENABLED TRUE
436440
HARDENED_RUNTIME_ENABLED ${HARDENED_RUNTIME_ENABLED}
437441
HARDENED_RUNTIME_OPTIONS ${HARDENED_RUNTIME_OPTIONS}
438-
DOCUMENT_EXTENSIONS pd plugdata
442+
DOCUMENT_EXTENSIONS ${DOCUMENT_EXTENSIONS}
439443
BUNDLE_ID com.plugdata.plugdata
440444
)
441445
else()
@@ -464,7 +468,7 @@ juce_add_plugin(plugdata_standalone
464468
LV2URI https://github.com/timothyschoen/plugdata
465469
PRODUCT_NAME ${STANDALONE_NAME}
466470
AU_MAIN_TYPE kAudioUnitType_MusicDevice
467-
DOCUMENT_EXTENSIONS pd plugdata
471+
DOCUMENT_EXTENSIONS ${DOCUMENT_EXTENSIONS}
468472
DOCUMENT_BROWSER_ENABLED TRUE
469473
BUNDLE_ID com.plugdata.plugdata
470474
APP_GROUPS_ENABLED TRUE

0 commit comments

Comments
 (0)