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++

Add manual copying of QtQuick/Layouts plugin into the AppImage

Dmitry Kazakovc5e2f265acd7
diff --git a/packaging/linux/appimage/build-image.sh b/packaging/linux/appimage/build-image.sh
index 7f7f79e685..021bac117a 100755
--- a/packaging/linux/appimage/build-image.sh
+++ b/packaging/linux/appimage/build-image.sh
@@ -186,6 +186,18 @@ cp -av --preserve=links $DEPS_INSTALL_PREFIX/lib/libharfbuzz.so.0* $APPDIR/usr/l
cp -av --preserve=links $DEPS_INSTALL_PREFIX/lib/libfribidi.so.0* $APPDIR/usr/lib/
cp -av --preserve=links $DEPS_INSTALL_PREFIX/lib/libfreetype.so.6* $APPDIR/usr/lib/
+## For some reason linuxdeployqt fails to deploy QtQuick.Layouts library into
+## the AppImage, so just copy it manually for now
+##
+## See the following related bugs for details:
+## * https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/1
+## * https://github.com/probonopd/linuxdeployqt/issues/25
+
+if [ -d $DEPS_INSTALL_PREFIX/qml/QtQuick/Layouts ]; then
+ mkdir -p $APPDIR/usr/qml/QtQuick/Layouts
+ rsync -prul $DEPS_INSTALL_PREFIX/qml/QtQuick/Layouts $APPDIR/usr/qml/QtQuick/
+fi
+
## == MLT Dependencies and Resources ==
cp -r $DEPS_INSTALL_PREFIX/share/mlt-7 $APPDIR/usr/share/mlt-7
cp -r $DEPS_INSTALL_PREFIX/lib/mlt-7 $APPDIR/usr/lib/mlt-7