Add files via upload

This commit is contained in:
Roy 2024-06-30 02:11:04 -07:00 committed by GitHub
parent 5f8a3e75b7
commit f31dd626da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1054,21 +1054,23 @@ function install_gog {
echo "45" echo "45"
echo "# Downloading & Installing Gog Galaxy...Please wait..." echo "# Downloading & Installing Gog Galaxy...Please wait..."
# Define the base directory path # Cancel & Exit the GOG Galaxy Setup Wizard
base_dir_path="${logged_in_home}/.local/share/Steam/steamapps/compatdata/$appid/pfx/drive_c/users/steamuser/Temp" end=$((SECONDS+60)) # Timeout after 60 seconds
while true; do
# Wait for the GalaxyInstaller_XXXXX directory to be created by the Galaxy process if pgrep -f "GalaxySetup.tmp" > /dev/null; then
galaxy_installer_folder="" pkill -f "GalaxySetup.tmp"
while [ -z "$galaxy_installer_folder" ]; do break
galaxy_installer_folder=$(find "$base_dir_path" -maxdepth 1 -type d -name "GalaxyInstaller_*" | head -n1) fi
if [ $SECONDS -gt $end ]; then
echo "Timeout while trying to kill GalaxySetup.tmp"
break
fi
sleep 1 sleep 1
done done
# Now that the directory exists, terminate the Galaxy process
terminate_processes "GalaxySetup.tmp"
# Navigate to %LocalAppData%\Temp # Navigate to %LocalAppData%\Temp
cd "$base_dir_path" cd "${logged_in_home}/.local/share/Steam/steamapps/compatdata/$appid/pfx/drive_c/users/steamuser/Temp"
# Find the GalaxyInstaller_XXXXX folder and copy it to C:\Downloads # Find the GalaxyInstaller_XXXXX folder and copy it to C:\Downloads
galaxy_installer_folder=$(find . -maxdepth 1 -type d -name "GalaxyInstaller_*" | head -n1) galaxy_installer_folder=$(find . -maxdepth 1 -type d -name "GalaxyInstaller_*" | head -n1)