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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-11-26 13:27:23 -08:00
parent 528559334f
commit 38bfb3de16

View File

@ -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)