I'm trying to package and release my C++ Qt app using GitHub Actions. I'm using a release workflow to do this. It works fine on Linux, but on Windows I get the following error:
CPack: Create package using ZIP
CPack: Install projects
CPack: - Install project: MarkdownEdit [Release]
CMake Error at D:/a/MarkdownEdit/MarkdownEdit/build/cmake_install.cmake:55 (include):
include could not find requested file:
D:/a/MarkdownEdit/MarkdownEdit/build/.qt/deploy_markdownedit_b3a8f1ec09-$<CONFIG>.cmake
I think this has something to do with
if(${QT_VERSION} GREATER_EQUAL 6.3 AND NOT FLATPAK)
qt_generate_deploy_app_script(
TARGET markdownedit
FILENAME_VARIABLE deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})
endif()
But unfortunately, I can't reproduce the problem in a VM (I don't use Windows, so a VM)
On Windows, I'm using Qt 6.5.1