Skip to content

Commit

Permalink
Fix VST3 copying step on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
CrushedPixel committed Oct 10, 2024
1 parent d7c3be4 commit e9c416d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions cli/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<TARGET_BUNDLE_DIR:${VST3_TARGET}>
"${OUTPUT_DIR}/${PROJECT_NAME}.vst3"
)
if (APPLE)
add_custom_command(TARGET ${VST3_TARGET} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
$<TARGET_BUNDLE_DIR:${VST3_TARGET}>
"${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()
)";

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e9c416d

Please sign in to comment.