From 5ff06e4ad322fb3382064019615500789aab6b70 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Thu, 18 May 2023 22:15:28 +0200 Subject: [PATCH] Proton Glorious Eggroll updater --- bin/update_proton_ge | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 bin/update_proton_ge diff --git a/bin/update_proton_ge b/bin/update_proton_ge new file mode 100755 index 0000000..76cce48 --- /dev/null +++ b/bin/update_proton_ge @@ -0,0 +1,22 @@ +#!/bin/bash + +# make temp working directory +mkdir /tmp/proton-ge-custom +cd /tmp/proton-ge-custom + +# download tarball +curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .tar.gz) + +# download checksum +curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .sha512sum) + +# check tarball with checksum +sha512sum -c *.sha512sum +# if result is ok, continue + +# make steam directory if it does not exist +mkdir -p ~/.steam/root/compatibilitytools.d + +# extract proton tarball to steam directory +tar -xf GE-Proton*.tar.gz -C ~/.steam/root/compatibilitytools.d/ +echo "All done :)"