|
| 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