Make appimage respect "QT_QPA_PLATFORM" env var.

This commit is contained in:
BailShamber 2021-11-28 09:55:41 +02:00
parent 46f9da97d2
commit 7dea8d9043

View file

@ -95,11 +95,11 @@ cp /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so ${BUILD_DIR}/duckstation-qt.AppDi
cp -r /usr/lib/x86_64-linux-gnu/qt5/plugins/{xcbglintegrations,platforms,wayland-graphics-integration-client,wayland-decoration-client,wayland-shell-integration} ${BUILD_DIR}/duckstation-qt.AppDir/usr/plugins
cat <<'EOF'>> ${BUILD_DIR}/duckstation-qt.AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
case "${WAYLAND_DISPLAY}" in
*wayland*)
if [ ! -z "${WAYLAND_DISPLAY}" ]; then
if [ -z ${QT_QPA_PLATFORM} ]; then
export QT_QPA_PLATFORM=wayland
;;
esac
fi
fi
EOF
UPDATE_INFORMATION="zsync|https://github.com/stenzek/duckstation/releases/download/latest/duckstation-qt-x64.AppImage.zsync" \