From e9c416d6112e4976060a8ceee28b24b37e8f4544 Mon Sep 17 00:00:00 2001 From: Marius Metzger Date: Thu, 10 Oct 2024 23:29:01 +0200 Subject: [PATCH] Fix VST3 copying step on Windows --- cli/src/main.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/cli/src/main.cpp b/cli/src/main.cpp index d0706715..959e5f0b 100644 --- a/cli/src/main.cpp +++ b/cli/src/main.cpp @@ -67,11 +67,18 @@ if(BUILD_VST3) ) # copy VST3 to output directory - add_custom_command(TARGET ${VST3_TARGET} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory - $ - "${OUTPUT_DIR}/${PROJECT_NAME}.vst3" - ) + if (APPLE) + add_custom_command(TARGET ${VST3_TARGET} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory + $ + "${OUTPUT_DIR}/${PROJECT_NAME}.vst3" + ) + else() + add_custom_command(TARGET ${VST3_TARGET} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory + "${OUTPUT_DIR}/${PROJECT_NAME}.vst3" + ) + endif() endif() )"; @@ -133,11 +140,6 @@ bool is_valid_au_manufacturer_code(const std::string& code) return false; } - if (code == "0000") - { - return false; - } - if (!std::isupper(code[0])) { return false;