0
0
mirror of https://notabug.org/litucks/torzu.git synced 2025-04-24 09:05:13 +00:00

AppImage runtime scripts rewrite (now functional on Steam Deck!)

This commit is contained in:
spectranator 2025-04-06 21:32:47 +02:00
parent e52e4ca429
commit 2384d30c2a
13 changed files with 19 additions and 73 deletions

11
AppImageBuilder/assets/AppRun Executable file
View File

@ -0,0 +1,11 @@
#! /bin/bash
cd "$APPDIR"
if [ -d /usr/lib/$(uname -m)-linux-gnu/qt5 ] || [ -d /usr/lib/qt ]; then
# System-wide Qt5
exec ./yuzu.sh "$@"
else
# Bundled Qt5
exec ./yuzu-bqt.sh "$@"
fi

View File

@ -0,0 +1,3 @@
#! /bin/sh
LD_LIBRARY_PATH=./qt5:/usr/lib/$(uname -m)-linux-gnu:/usr/lib:. QT_PLUGIN_PATH=./qt5 exec ./yuzu "$@"

3
AppImageBuilder/assets/yuzu.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/sh
LD_LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:/usr/lib:. exec ./yuzu "$@"

View File

View File

@ -1,13 +0,0 @@
#! /bin/bash
cd "$APPDIR"
if [ -d /usr/lib/aarch64-linux-gnu/qt5 ]; then
exec ./yuzu-bwrap.sh "$@"
else
if [ -d /usr/lib/aarch64-linux-gnu/qt6 ]; then
exec ./yuzu-bwrap.sh "$@"
else
exec ./yuzu.sh "$@"
fi
fi

View File

@ -1,8 +0,0 @@
#! /bin/sh
if [ -d /usr/lib/aarch64-linux-gnu/qt5 ]; then
exec ./bwrap --dev-bind / / --tmpfs /usr/lib/aarch64-linux-gnu/qt5 ./yuzu.sh "$@"
else
if [ -d /usr/lib/aarch64-linux-gnu/qt6 ]; then
exec ./bwrap --dev-bind / / --tmpfs /usr/lib/aarch64-linux-gnu/qt6 ./yuzu.sh "$@"
fi
fi

View File

@ -1,3 +0,0 @@
#! /bin/sh
LD_LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:. QT_QPA_PLATFORM=xcb QT_PLUGIN_PATH=. exec ./yuzu "$@"

View File

@ -1,25 +0,0 @@
#! /bin/bash
cd "$APPDIR"
# default qt5 location
if [ -d /usr/lib/x86_64-linux-gnu/qt5 ]; then
exec ./yuzu-bwrap.sh "$@"
else
# qt5 on Steam Deck (as qt)
if [ -d /usr/lib/qt ]; then
exec ./yuzu-bwrap.sh "$@"
else
# default qt6 location
if [ -d /usr/lib/x86_64-linux-gnu/qt6 ]; then
exec ./yuzu-bwrap.sh "$@"
else
# qt6 on Steam Deck
if [ -d /usr/lib/qt6 ]; then
exec ./yuzu-bwrap.sh "$@"
else
exec ./yuzu.sh "$@"
fi
fi
fi
fi

View File

@ -1,21 +0,0 @@
#! /bin/sh
# default qt5 location
if [ -d /usr/lib/x86_64-linux-gnu/qt5 ]; then
exec ./bwrap --dev-bind / / --tmpfs /usr/lib/x86_64-linux-gnu/qt5 ./yuzu.sh "$@"
else
# qt5 on Steam Deck (as qt)
if [ -d /usr/lib/qt ]; then
exec ./bwrap --dev-bind / / --tmpfs /usr/lib/qt ./yuzu.sh "$@"
else
# default qt6 location
if [ -d /usr/lib/x86_64-linux-gnu/qt6 ]; then
exec ./bwrap --dev-bind / / --tmpfs /usr/lib/x86_64-linux-gnu/qt6 ./yuzu.sh "$@"
else
# qt6 on Steam Deck
if [ -d /usr/lib/qt6 ]; then
exec ./bwrap --dev-bind / / --tmpfs /usr/lib/qt6 ./yuzu.sh "$@"
fi
fi
fi
fi

View File

@ -1,2 +0,0 @@
#! /bin/sh
LD_LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:. QT_QPA_PLATFORM=xcb QT_PLUGIN_PATH=. exec ./yuzu "$@"

View File

@ -70,7 +70,8 @@ if [ $QTFOUND == "true" ]; then
# Copy QT dependency folders, path determined above # Copy QT dependency folders, path determined above
echo "Copying Qt dependencies..." echo "Copying Qt dependencies..."
cp -rv "$QTDIR"/{imageformats,platforms,platformthemes,xcbglintegrations} ./build/ mkdir ./build/qt5
cp -rv "$QTDIR"/{imageformats,platforms,platformthemes,xcbglintegrations} ./build/qt5/
# Discover indirect dependencies (mostly from runtime-loaded Qt plugins) # Discover indirect dependencies (mostly from runtime-loaded Qt plugins)
echo "Copying extra dependencies..." echo "Copying extra dependencies..."