diff --git a/cmake/bundle-install.cmake.in b/cmake/bundle-install.cmake.in index 3a6ef2f..4be871c 100644 --- a/cmake/bundle-install.cmake.in +++ b/cmake/bundle-install.cmake.in @@ -87,7 +87,9 @@ file(GET_RUNTIME_DEPENDENCIES set(helper_executables "") if(resolved MATCHES "libQt6WebEngineCore") message(STATUS "Bundling Qt WebEngine (${webengine_process})") - file(INSTALL "${webengine_process}" DESTINATION "${prefix}/libexec" FOLLOW_SYMLINK_CHAIN) + # TYPE PROGRAM: a plain file(INSTALL) would drop the executable bit. + file(INSTALL "${webengine_process}" DESTINATION "${prefix}/libexec" TYPE PROGRAM + FOLLOW_SYMLINK_CHAIN) list(APPEND helper_executables "${prefix}/libexec/QtWebEngineProcess") file(GET_RUNTIME_DEPENDENCIES EXECUTABLES ${helper_executables}