From 895e8f2a64079be3336b19cf19375ef4aa0408c5 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 14 Nov 2020 13:57:20 +0100 Subject: [PATCH 1/2] Bundle the dylibs where the code signer can find them --- cmake/BundleDylibs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/BundleDylibs.cmake b/cmake/BundleDylibs.cmake index abee5c186..f7c0628a2 100644 --- a/cmake/BundleDylibs.cmake +++ b/cmake/BundleDylibs.cmake @@ -13,7 +13,7 @@ function(bundle_dylibs NAME PATH) return() endif() - set(_relative_libdir "../libs") + set(_relative_libdir "../Frameworks") get_filename_component(_dir "${PATH}" DIRECTORY) set(_dir "${_dir}/${_relative_libdir}") From 96b4c490e23492ae5c6e61629884ea7ecaff99f2 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 14 Nov 2020 14:04:41 +0100 Subject: [PATCH 2/2] Do not store text files at the root of VST and AU bundles --- vst/CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/vst/CMakeLists.txt b/vst/CMakeLists.txt index 8e765c09f..ccb73714a 100644 --- a/vst/CMakeLists.txt +++ b/vst/CMakeLists.txt @@ -123,8 +123,15 @@ else() LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}/Contents/${VST3_PACKAGE_ARCHITECTURE}-linux/$<0:>") endif() -file(COPY "gpl-3.0.txt" - DESTINATION "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}") +# Copy the license +if(APPLE) + # on macOS, files are not permitted at the bundle root, during code signing + file(COPY "gpl-3.0.txt" + DESTINATION "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}/Contents/SharedSupport/License") +else() + file(COPY "gpl-3.0.txt" + DESTINATION "${PROJECT_BINARY_DIR}/${VSTPLUGIN_BUNDLE_NAME}") +endif() if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") target_compile_options(${VSTPLUGIN_PRJ_NAME} PRIVATE @@ -280,7 +287,7 @@ elseif(SFIZZ_AU) DESTINATION "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/Resources") file(COPY "gpl-3.0.txt" - DESTINATION "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}") + DESTINATION "${PROJECT_BINARY_DIR}/${AUPLUGIN_BUNDLE_NAME}/Contents/SharedSupport/License") # Add the resource fork if (FALSE)