mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 09:54:23 +01:00
Add Retroarch as an optional install
This commit is contained in:
BIN
applications/icons/Retroarch.png
Normal file
BIN
applications/icons/Retroarch.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
@@ -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
|
||||
|
||||
14
install/desktop/optional/app-retroarch.sh
Normal file
14
install/desktop/optional/app-retroarch.sh
Normal 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
|
||||
5
uninstall/app-retroarch.sh
Normal file
5
uninstall/app-retroarch.sh
Normal 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
|
||||
Reference in New Issue
Block a user