From 38bfb3de16b3e0a0816c86a9bdf56388af0488fe Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 26 Nov 2021 13:27:23 -0800 Subject: [PATCH] macOS: correctly bundle QtWebEngineProcess.app Once again macdeployqt doesn't get things right for us. It doesn't actually copy this required helper into the bundle. Oh well, more manual magic. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dbe83493..ba8005826 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -536,6 +536,11 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") install(CODE "execute_process(COMMAND cp -a ${_qt5Core_install_prefix}/qml/QtQml ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Resources/qml)") install(CODE "execute_process(COMMAND cp -a ${_qt5Core_install_prefix}/qml/QtPositioning ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Resources/qml)") endif() + # if we build with WebEngine we need to copy the helper which macdeployqt appears to get wrong as well + if(USE_WEBENGINE) + install(CODE "execute_process(COMMAND mkdir -p ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Frameworks/QtWebEngineCore.framework/Helpers)") + install(CODE "execute_process(COMMAND cp -a ${_qt5Core_install_prefix}/lib/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Frameworks/QtWebEngineCore.framework/Helpers/)") + endif() elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") if (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") if(NOT DEFINED OBJCOPY)