-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathprotonup-rs-install.desktop
More file actions
executable file
·8 lines (8 loc) · 1.05 KB
/
Copy pathprotonup-rs-install.desktop
File metadata and controls
executable file
·8 lines (8 loc) · 1.05 KB
1
2
3
4
5
6
7
8
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Install Protonup-rs
Exec=sh -c 'ARCH=$(uname -m); if [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; elif [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; else echo "Unsupported architecture: $ARCH"; read; exit 1; fi; echo "Detected architecture: $ARCH"; echo "Downloading and installing Protonup-rs"; rm -f /tmp/protonup-rs-linux-${ARCH}.tar.gz; if curl -S -s -L -O --output-dir /tmp/ --connect-timeout 60 https://github.com/auyer/Protonup-rs/releases/latest/download/protonup-rs-linux-${ARCH}.tar.gz ; then tar -xvzf /tmp/protonup-rs-linux-${ARCH}.tar.gz -C /tmp/ && mv /tmp/protonup-rs ${HOME}/.local/bin/ && [[ "$SHELL" == *"bash"* ]] && [ "$SHELL" = "/bin/bash" ] && echo "export PATH=$PATH:${HOME}/.local/bin" >> ${HOME}/.bashrc || ([ "$SHELL" = "/bin/zsh" ] && echo "export PATH=$PATH:${HOME}/.local/bin" >> ${HOME}/.zshrc ) && rm /tmp/protonup-rs-linux-${ARCH}.tar.gz ; else echo "Something went wrong, please report this if it is a bug"; read; fi'
Icon=steamdeck-gaming-return
Terminal=true
Type=Application
StartupNotify=false