compatabilitytools.d Check

- added check to create folder or not
This commit is contained in:
moraroy 2023-04-29 23:21:01 -07:00 committed by GitHub
parent a20694eb15
commit d22f99075c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,10 +26,20 @@ else
use_separate_appids=false
fi
(
echo "0"
echo "# Detecting and Installing GE-Proton"
# check to make sure compatabilitytools.d exists and makes it if it doesnt
if [ ! -d "$HOME/.steam/root/compatibilitytools.d" ]; then
mkdir -p "$HOME/.steam/root/compatibilitytools.d"
fi
(
# Create NonSteamLaunchersInstallation subfolder in Downloads folder
mkdir -p ~/Downloads/NonSteamLaunchersInstallation
@ -40,6 +50,13 @@ proton_dir=$(find ~/.steam/root/compatibilitytools.d -maxdepth 1 -type d -name "
ge_proton_url1=https://github.com/GloriousEggroll/proton-ge-custom/releases/latest/download/GE-Proton.tar.gz
ge_proton_url2=https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton7-55/GE-Proton7-55.tar.gz
# Check if GE-Proton is installed
if [ -z "$proton_dir" ]; then
# Download GE-Proton using the first URL
@ -292,6 +309,8 @@ while true; do
# Compare the size of the file with the expected size
if [ "$file_size" -eq "$expected_size" ]; then
sleep 2
# The sizes match
echo "The size of the GalaxySetup.exe file matches the expected size."
break