Add Protonup installer
This commit is contained in:
33
overlay/opt/scripts/install_protonup.sh
Normal file
33
overlay/opt/scripts/install_protonup.sh
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
###
|
||||||
|
# File: install_lutris.sh
|
||||||
|
# Project: scripts
|
||||||
|
# File Created: Thursday, 1st January 1970 12:45:00 pm
|
||||||
|
# Author: Console and webGui login account (jsunnex@gmail.com)
|
||||||
|
# -----
|
||||||
|
# Last Modified: Sunday, 16th January 2022 2:17:35 am
|
||||||
|
# Modified By: Console and webGui login account (jsunnex@gmail.com)
|
||||||
|
###
|
||||||
|
|
||||||
|
pkg=protonup
|
||||||
|
script_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd );
|
||||||
|
script_name=$( basename "${BASH_SOURCE[0]}" )
|
||||||
|
|
||||||
|
|
||||||
|
install() {
|
||||||
|
if ! command -v ${pkg} >/dev/null; then
|
||||||
|
# Install application
|
||||||
|
python3 -m pip install ${pkg}
|
||||||
|
# Set installation path as user
|
||||||
|
# Note: Run command with su because init processes are run as root but this is a user thing...
|
||||||
|
su ${USER} -c "${pkg} -d '/home/${USER}/.steam/root/compatibilitytools.d/'"
|
||||||
|
# Update to the latest version on startup using the users Downloads directory
|
||||||
|
su ${USER} -c "${pkg} -y -o '/home/${USER}/Downloads/'" &
|
||||||
|
fi
|
||||||
|
# Make sure the desktop icon is removed
|
||||||
|
rm -f /usr/share/applications/protonup.desktop
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#INSTALLER:
|
||||||
|
source "${script_path}/installer.sh"
|
||||||
7
overlay/usr/share/applications/protonup.desktop
Normal file
7
overlay/usr/share/applications/protonup.desktop
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Installer - Protonup
|
||||||
|
Categories=Game;
|
||||||
|
Exec=/opt/scripts/install_protonup.sh %U
|
||||||
|
Icon=installsoftware
|
||||||
|
Terminal=true
|
||||||
|
Type=Application
|
||||||
Reference in New Issue
Block a user