Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.

Commit 9053324

Browse files
committed
Add error handling to windeployqt
1 parent 3c7cbd1 commit 9053324

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

CMakeModules/CompleteBundleWin.cmake.in

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
set(PROJECT_SOURCE_DIR @PROJECT_SOURCE_DIR@)
2+
set(QTROOT "@QTROOT@")
23

3-
execute_process(COMMAND @QTROOT@/bin/windeployqt.exe --verbose 9 --qmldir @SOURCE_ROOT@/src/ui "${CMAKE_INSTALL_PREFIX}/Jellyfin Desktop.exe")
4+
message(STATUS "Running windeployqt from: ${QTROOT}/bin/windeployqt.exe")
5+
message(STATUS "Target: ${CMAKE_INSTALL_PREFIX}/Jellyfin Desktop.exe")
6+
7+
execute_process(
8+
COMMAND "${QTROOT}/bin/windeployqt.exe" --verbose 9 --qmldir @SOURCE_ROOT@/src/ui "${CMAKE_INSTALL_PREFIX}/Jellyfin Desktop.exe"
9+
RESULT_VARIABLE WINDEPLOYQT_RESULT
10+
)
11+
12+
if(NOT WINDEPLOYQT_RESULT EQUAL 0)
13+
message(FATAL_ERROR "windeployqt failed with exit code: ${WINDEPLOYQT_RESULT}")
14+
endif()
15+
16+
# windeployqt may miss Qt6Xml.dll - copy explicitly
17+
file(INSTALL "${QTROOT}/bin/Qt6Xml.dll" DESTINATION "${CMAKE_INSTALL_PREFIX}")
418

519
# on windows windeployqt doesnt install non qt libraries, let cmake do that
620
# include(BundleUtilities)

0 commit comments

Comments
 (0)