download-proton-ge.sh 584 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. # ref_url="https://github.com/GloriousEggroll/proton-ge-custom/releases/latest"
  4. ref_url="https://github.com/GloriousEggroll/proton-ge-custom/releases"
  5. release_ext=".tar.gz"
  6. a=$(2>/dev/null curl $ref_url | sed -r "s/.+href=\"(.+)\" rel=.+/\1/" | grep -E "^.+releases.+tar.gz$" | sort -n | tail -n1)
  7. dl="https://github.com$a"
  8. echo downloading $dl
  9. wget "$dl" -O "proton_ge_latest${release_ext}"
  10. mkdir -p ~/.steam/root/compatibilitytools.d/
  11. tar -xavf "proton_ge_latest${release_ext}" \
  12. -C ~/.steam/root/compatibilitytools.d/