mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
Proton Glorious Eggroll updater
This commit is contained in:
22
bin/update_proton_ge
Executable file
22
bin/update_proton_ge
Executable file
@@ -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 :)"
|
||||||
Reference in New Issue
Block a user