Restructuring the repo
This commit is contained in:
parent
21e3cf65e6
commit
3d67598c27
45 changed files with 368 additions and 77 deletions
31
misc/install-proton-ge.zsh
Executable file
31
misc/install-proton-ge.zsh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/zsh
|
||||
# installs or updates to latest release of Proton build by GloriousEggroll
|
||||
# saves installed versions in $STEAM_DIR/compatibilitytools.d/proton-ge-tags
|
||||
|
||||
autoload -Uz colors && colors
|
||||
|
||||
if [[ ! -e $HOME/.steam/root/ ]]; then
|
||||
if [[ -e $HOME/.var/app/com.valvesoftware.Steam/data/Steam ]]; then
|
||||
#flatpak-version
|
||||
COMPTOOLSDIR=$HOME/.var/app/com.valvesoftware.Steam/data/Steam/compatibilitytools.d/
|
||||
fi
|
||||
echo "steam root not found"
|
||||
exit 1
|
||||
else
|
||||
COMPTOOLSDIR=$HOME/.steam/root/compatibilitytools.d
|
||||
fi
|
||||
|
||||
mkdir -p $COMPTOOLSDIR
|
||||
|
||||
latest_json=$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest)
|
||||
release_tag=$(jq -r .tag_name <<<$latest_json)
|
||||
|
||||
installed_tags="$COMPTOOLSDIR/proton-ge-tags"
|
||||
|
||||
if grep -q "^$release_tag\$" "$installed_tags"; then
|
||||
echo "${fg_bold[yellow]}Current release $release_tag already installed.$reset_color"
|
||||
else
|
||||
echo $release_tag >> .steam/root/compatibilitytools.d/proton-ge-tags
|
||||
curl -L $(jq -r '.tarball_url'<<<"$latest_json") | tar -C $COMPTOOLSDIR -xvz
|
||||
echo "${fg_bold[green]}Installed release $release_tag.$reset_color"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue