Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Make sure that QML's Layouts module is installed on Windows

Dmitry Kazakov04cf35e11eb8
diff --git a/packaging/windows/package-complete.cmd b/packaging/windows/package-complete.cmd
index 0db5271858..4c79178b00 100644
--- a/packaging/windows/package-complete.cmd
+++ b/packaging/windows/package-complete.cmd
@@ -756,6 +756,13 @@ if exist "%KRITA_INSTALL_DIR%\lib\qml" (
set "QMLDIR_ARGS=%QMLDIR_ARGS% --qmldir %KRITA_INSTALL_DIR%\lib\qml"
)
+:: For some reason windowsdeployqt skips installing Layouts QML plugin,
+:: so we need to copy it manually
+if exist "%DEPS_INSTALL_DIR%\qml\QtQuick\Layouts" (
+ xcopy.exe /Y /S /I %DEPS_INSTALL_DIR%\qml\QtQuick\Layouts %pkg_root%\bin\QtQuick\Layouts
+)
+
+
:: windeployqt
windeployqt.exe %QMLDIR_ARGS% --release -gui -core -concurrent -network -printsupport -svg -xml -sql -qml -quick -quickwidgets %pkg_root%\bin\krita.exe %pkg_root%\bin\krita.dll
if errorlevel 1 (