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++
Fix packaging wayland platform plugin on Qt 6.10.x
Dmitry Kazakov040508885182
diff --git a/packaging/linux/appimage/build-image.sh b/packaging/linux/appimage/build-image.shindex 74f6413c6f..f41d364e78 100755--- a/packaging/linux/appimage/build-image.sh+++ b/packaging/linux/appimage/build-image.sh@@ -355,8 +355,18 @@ fiEXTRA_PLUGINS_LIST="$PLUGINS,$APPDIR/usr/lib/krita-python-libs/PyKrita/krita.so"+WAYLAND_PLATFORM_PLUGIN_NAME=+# Qt6.8 names the plugin file as libqwayland-generic.soif [ -f $DEPS_INSTALL_PREFIX/plugins/platforms/libqwayland-generic.so ]; then- EXTRA_PLATFORM_PLUGINS="platforms/libqwayland-generic.so,wayland-shell-integration/libxdg-shell.so,wayland-graphics-integration-client/libqt-plugin-wayland-egl.so"+ WAYLAND_PLATFORM_PLUGIN_NAME="platforms/libqwayland-generic.so"+fi+# Qt6.10 names the plugin file as libqwayland.so+if [ -f $DEPS_INSTALL_PREFIX/plugins/platforms/libqwayland.so ]; then+ WAYLAND_PLATFORM_PLUGIN_NAME="platforms/libqwayland.so"+fi++if [ -n "$WAYLAND_PLATFORM_PLUGIN_NAME" ]; then+ EXTRA_PLATFORM_PLUGINS="$WAYLAND_PLATFORM_PLUGIN_NAME,wayland-shell-integration/libxdg-shell.so,wayland-graphics-integration-client/libqt-plugin-wayland-egl.so"EXTRA_PLUGINS_LIST="$EXTRA_PLUGINS_LIST,$EXTRA_PLATFORM_PLUGINS"fi