haskell-config for nvim & ge_proton install script
This commit is contained in:
36
scripts/install_latest_ge_proton.bash
Executable file
36
scripts/install_latest_ge_proton.bash
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# make temp working directory
|
||||
echo "Creating temporary working directory..."
|
||||
rm -rf /tmp/proton-ge-custom
|
||||
mkdir /tmp/proton-ge-custom
|
||||
cd /tmp/proton-ge-custom
|
||||
|
||||
# download tarball
|
||||
echo "Fetching tarball URL..."
|
||||
tarball_url=$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | grep .tar.gz)
|
||||
tarball_name=$(basename "$tarball_url")
|
||||
echo "Downloading tarball: $tarball_name..."
|
||||
curl -# -L "$tarball_url" -o "$tarball_name" --no-progress-meter
|
||||
|
||||
# download checksum
|
||||
echo "Fetching checksum URL..."
|
||||
checksum_url=$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | grep .sha512sum)
|
||||
checksum_name=$(basename "$checksum_url")
|
||||
echo "Downloading checksum: $checksum_name..."
|
||||
curl -# -L "$checksum_url" -o "$checksum_name" --no-progress-meter
|
||||
|
||||
# check tarball with checksum
|
||||
echo "Verifying tarball $tarball_name with checksum $checksum_name..."
|
||||
sha512sum -c "$checksum_name"
|
||||
# if result is ok, continue
|
||||
|
||||
# make steam directory if it does not exist
|
||||
echo "Creating Steam directory if it does not exist..."
|
||||
mkdir -p ~/.steam/steam/compatibilitytools.d
|
||||
|
||||
# extract proton tarball to steam directory
|
||||
echo "Extracting $tarball_name to Steam directory..."
|
||||
tar -xf "$tarball_name" -C ~/.steam/steam/compatibilitytools.d/
|
||||
echo "All done :)"
|
Reference in New Issue
Block a user