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:
parent
e52e4ca429
commit
2384d30c2a
11
AppImageBuilder/assets/AppRun
Executable file
11
AppImageBuilder/assets/AppRun
Executable 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
|
3
AppImageBuilder/assets/yuzu-bqt.sh
Executable file
3
AppImageBuilder/assets/yuzu-bqt.sh
Executable 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
3
AppImageBuilder/assets/yuzu.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
LD_LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:/usr/lib:. exec ./yuzu "$@"
|
0
AppImageBuilder/assets_aarch64/.gitkeep
Normal file
0
AppImageBuilder/assets_aarch64/.gitkeep
Normal 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
|
@ -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
|
@ -1,3 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
LD_LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:. QT_QPA_PLATFORM=xcb QT_PLUGIN_PATH=. exec ./yuzu "$@"
|
@ -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
|
@ -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
|
@ -1,2 +0,0 @@
|
||||
#! /bin/sh
|
||||
LD_LIBRARY_PATH=/usr/lib/$(uname -m)-linux-gnu:. QT_QPA_PLATFORM=xcb QT_PLUGIN_PATH=. exec ./yuzu "$@"
|
@ -70,7 +70,8 @@ if [ $QTFOUND == "true" ]; then
|
||||
|
||||
# Copy QT dependency folders, path determined above
|
||||
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)
|
||||
echo "Copying extra dependencies..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user