Skip to content

Instantly share code, notes, and snippets.

@angeloanan
Last active May 23, 2023 20:18
Show Gist options
  • Save angeloanan/506fbd4e58044723cde50e3340151501 to your computer and use it in GitHub Desktop.
Save angeloanan/506fbd4e58044723cde50e3340151501 to your computer and use it in GitHub Desktop.
Pineapple EA SteamDeck updater (Emudeck)
#!/bin/bash
deps=("curl" "jq")
api_url="https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest"
install_location="/home/deck/Applications"
# Install deps if needed
for package_name in "${deps[@]}"; do
# Check if the package is already installed
if pacman -Qi "$package_name" &> /dev/null; then
echo "Package $package_name is not installed. Installing..."
# Update package lists and install the package
sudo pacman -Sy --noconfirm "$package_name"
# Check if the package installation was successful
if pacman -Qi "$package_name" &> /dev/null; then
echo "Package $package_name installed successfully."
else
echo "Failed to install package $package_name. Please check for errors."
fi
else
echo "Package $package_name is already installed."
fi
done
echo "Getting latest release info"
download_url=$(curl -s $api_url | jq -r '.assets[] | select(.name | contains(".AppImage")) | .browser_download_url')
echo "Downloading & saving latest release"
curl -o $install_location+"/Yuzu.AppImage" "$download_url"
echo "chmoding"
chmod +x $install_location+"/Yuzu.AppImage"
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=sh -c 'curl -L https://gist.githubusercontent.com/angeloanan/506fbd4e58044723cde50e3340151501/raw/e2be077d0bc04a71dd132ca3f78a28ca5a73da6c/yuzu-updater.sh | bash'
GenericName[en_US]=
GenericName=
MimeType=
Name[en]=Update Yuzu (SteamDeck EmuDeck)
Name=Update Yuzu (SteamDeck EmuDeck)
Path=
StartupNotify=false
Terminal=true
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment