diff --git a/AppImage-package/bundle.sh b/AppImage-package/bundle.sh index b9eceed38..90c19e1de 100644 --- a/AppImage-package/bundle.sh +++ b/AppImage-package/bundle.sh @@ -101,3 +101,8 @@ ARCH=x86_64 VERSION=$SCRIBUS_VERSION ./linuxdeployqt-continuous-x86_64.AppImage -executable=appdir/usr/bin/python3.12 \ -executable=appdir/usr/lib/python3.12/lib-dynload/_tkinter.cpython-312-x86_64-linux-gnu.so \ -qmake=qmake6; + +# Ensure the offscreen and wayland platform plugins are included +QT_PLUGINS_DIR=$(qmake6 -query QT_INSTALL_PLUGINS) +cp "$QT_PLUGINS_DIR/platforms/libqoffscreen.so" appdir/usr/plugins/platforms/ 2>/dev/null || true +cp "$QT_PLUGINS_DIR/platforms/libqwayland*.so" appdir/usr/plugins/platforms/ 2>/dev/null || true