Skip to content

Commit e72f2a3

Browse files
committed
Steam: bring back via Switchdeck
1 parent b28371b commit e72f2a3

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

megascript_apps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn="Celeste (Pico-8 Port)";;d="A tight platforming game which lead to the develo
4444

4545
fn="Flappy Bird";;d="A game about a bird flying in between warp pipes";;sn="flappy_install.sh";;f="games_and_emulators";;blacklist="fedora"
4646

47-
# fn="Steam";;d='WARNING: This emulates the x86_64 Linux version of Steam using Box64/86. Expect VERY poor performance on x86 32bit (Windows and Linux) games.';;sn="steam.sh";;f="games_and_emulators";;blacklist="fedora,bionic,x86_64"
47+
fn="Steam";;d='This uses Sildur's Switchdeck project to run the Steam UI natively and Box64 to emulate games. Performance varies.';;sn="steam-switchdeck.sh";;f="games_and_emulators";;blacklist="fedora,bionic,x86_64"
4848

4949
fn="SuperTux";;d='A 2D jump and run sidescroller game in a style similar to the original Super Mario games';;sn="ST2.sh";;f="games_and_emulators";;blacklist="fedora"
5050

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
echo "Steam (via SildurFX's Switchdeck project) script started!"
4+
sleep 1
5+
6+
echo "Making sure box64 is installed..."
7+
bash -c "$(curl -s https://raw.githubusercontent.com/$repository_username/L4T-Megascript/$repository_branch/scripts/box64.sh)" || exit $?
8+
9+
bash -c "$(curl -s https://raw.githubusercontent.com/SildurFX/Switchdeck/main/install-steam.sh)" || exit $?
10+
11+
if [[ $gui == "gui" ]]; then
12+
if yad --class L4T-Megascript --name "L4T Megascript" --center --image "dialog-information" --width="500" --height="250" --title "Steam is now installed! " \
13+
--text "To get your games set up, there's some extra work you'll have to do. \
14+
\nWe just did the installation step for you, but the rest of Sildur's documentation to configure Steam will have to be followed manually. \
15+
\n\nFor support, please create an <a href=\"https://github.com/SildurFX/Switchdeck/issues\">Issue in the Switchdeck repo</a> or ask for help in #steam-on-arm in the <a href=\"https://wiki.switchroot.org/wiki#resources\">Linux 4 Switch Discord Server</a>. \
16+
\nA web browser will launch with the instructions after you hit OK!" --window-icon=/usr/share/icons/L4T-Megascript.png
17+
then
18+
setsid x-www-browser "https://github.com/SildurFX/Switchdeck#installation" >/dev/null 2>&1 &
19+
fi
20+
else
21+
clear
22+
cat <<EOF | fold -s -w "${COLUMNS:-80}"
23+
Steam is now installed! To get your games set up, please visit the following link by holding CTRL and clicking it:
24+
https://github.com/SildurFX/Switchdeck#installation
25+
26+
We just did the installation step for you, but the rest of the documentation will have to be followed manually per Sildur's directions above.
27+
For support, please create an Issue in the Switchdeck repo (https://github.com/SildurFX/Switchdeck/issues)
28+
or ask for help in #steam-on-arm in the Linux 4 Switch Discord Server (https://wiki.switchroot.org/wiki#resources).
29+
30+
EOF
31+
if [ -t 0 ]; then
32+
read -n 1 -p "Press any key to continue" mainmenuinput
33+
echo ""
34+
else
35+
echo "Non-interactive environment detected, skipping user prompt to open documentation."
36+
fi
37+
fi
38+

0 commit comments

Comments
 (0)