fix: bundle full Helper .app inside .vst3 and spawn it correctly
Browse filesThe bare executable doesn't work β JUCE needs the .app bundle structure
(Info.plist etc.) to initialize the message loop and plugin formats.
Fix: copy entire PluginBridgeHelper.app into .vst3/Contents/Resources/
and spawn via the MacOS/PluginBridgeHelper path inside it.
- CMakeLists.txt +8 -5
CMakeLists.txt
CHANGED
|
@@ -112,7 +112,8 @@ target_link_libraries(PluginBridgeHelper
|
|
| 112 |
)
|
| 113 |
|
| 114 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 115 |
-
# Post-build: Copy PluginBridgeHelper into the .vst3 bundle
|
|
|
|
| 116 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 117 |
|
| 118 |
add_dependencies(PluginBridge PluginBridgeHelper)
|
|
@@ -120,8 +121,10 @@ add_dependencies(PluginBridge PluginBridgeHelper)
|
|
| 120 |
add_custom_command(TARGET PluginBridge POST_BUILD
|
| 121 |
COMMAND ${CMAKE_COMMAND} -E make_directory
|
| 122 |
"$<TARGET_BUNDLE_DIR:PluginBridge_VST3>/Contents/Resources"
|
| 123 |
-
COMMAND ${CMAKE_COMMAND} -E
|
| 124 |
-
"$<
|
| 125 |
-
|
| 126 |
-
|
|
|
|
|
|
|
| 127 |
)
|
|
|
|
| 112 |
)
|
| 113 |
|
| 114 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 115 |
+
# Post-build: Copy full PluginBridgeHelper.app into the .vst3 bundle
|
| 116 |
+
# The .app structure is required for JUCE to initialize properly.
|
| 117 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 118 |
|
| 119 |
add_dependencies(PluginBridge PluginBridgeHelper)
|
|
|
|
| 121 |
add_custom_command(TARGET PluginBridge POST_BUILD
|
| 122 |
COMMAND ${CMAKE_COMMAND} -E make_directory
|
| 123 |
"$<TARGET_BUNDLE_DIR:PluginBridge_VST3>/Contents/Resources"
|
| 124 |
+
COMMAND ${CMAKE_COMMAND} -E rm -rf
|
| 125 |
+
"$<TARGET_BUNDLE_DIR:PluginBridge_VST3>/Contents/Resources/PluginBridgeHelper.app"
|
| 126 |
+
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
| 127 |
+
"$<TARGET_BUNDLE_DIR:PluginBridgeHelper>"
|
| 128 |
+
"$<TARGET_BUNDLE_DIR:PluginBridge_VST3>/Contents/Resources/PluginBridgeHelper.app"
|
| 129 |
+
COMMENT "Bundling PluginBridgeHelper.app inside PluginBridge.vst3"
|
| 130 |
)
|