Add Retroarch as an optional install

This commit is contained in:
David Heinemeier Hansson
2025-04-13 12:47:37 +02:00
parent a753d7d969
commit 4d8e9e9918
4 changed files with 21 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -10,6 +10,7 @@ CHOICES=(
"Mainline Kernels Install newer Linux kernels than Ubuntu defaults"
"OBS Studio Record screencasts with inputs from both display + webcam"
"Ollama Run LLMs, like Meta's Llama3, locally"
"Retroarch Play retro games"
"Scrcpy Android screen mirroring (requires dev mode / USB debug on!)"
"Spotify Stream music from the world's most popular service"
"Steam Play games from Valve's store"
@@ -19,7 +20,7 @@ CHOICES=(
"<< Back "
)
CHOICE=$(gum choose "${CHOICES[@]}" --height 20 --header "Install application")
CHOICE=$(gum choose "${CHOICES[@]}" --height 21 --header "Install application")
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
# Don't install anything

View File

@@ -0,0 +1,14 @@
sudo add-apt-repository -y ppa:libretro/stable
sudo apt update -y
sudo apt install -y retroarch
cat <<EOF >~/.local/share/applications/Retroarch.desktop
[Desktop Entry]
Name=RetroArch
Exec=/usr/bin/retroarch
Type=Application
Icon=/home/$USER/.local/share/omakub/applications/icons/Retroarch.png
Comment=Play retro games
Categories=Game;Emulator;
Terminal=false
EOF

View File

@@ -0,0 +1,5 @@
sudo add-apt-repository --remove ppa:libretro/stable
sudo apt update -y
sudo apt remove -y retroarch
sudo apt autoremove -y
rm ~/.local/share/applications/Retroarch.desktop