From 376aad2169dea2755c04ce83c02b9434cb88c9c9 Mon Sep 17 00:00:00 2001 From: Lab Date: Tue, 3 Mar 2026 15:43:37 -0800 Subject: [PATCH] Bundle ReclassMcpBridge into macOS .app Copy the MCP stdio bridge executable into Reclass.app/Contents/MacOS/ via a POST_BUILD step so Claude Desktop can find it when the app is distributed as a bundle. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bac0ad..a63b047 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,6 +153,14 @@ endif() add_executable(ReclassMcpBridge tools/rcx-mcp-stdio.cpp) target_link_libraries(ReclassMcpBridge PRIVATE ${QT}::Core ${QT}::Network) +if(APPLE) + add_custom_command(TARGET ReclassMcpBridge POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + $ + $/ReclassMcpBridge + COMMENT "Bundling ReclassMcpBridge into Reclass.app" + ) +endif() # Copy built-in theme JSON files to build directory file(GLOB _theme_files "${CMAKE_SOURCE_DIR}/src/themes/defaults/*.json")