mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
compatabilitytools.d Check
- added check to create folder or not
This commit is contained in:
parent
a20694eb15
commit
d22f99075c
@ -26,10 +26,20 @@ else
|
|||||||
use_separate_appids=false
|
use_separate_appids=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(
|
|
||||||
echo "0"
|
echo "0"
|
||||||
echo "# Detecting and Installing GE-Proton"
|
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
|
# Create NonSteamLaunchersInstallation subfolder in Downloads folder
|
||||||
mkdir -p ~/Downloads/NonSteamLaunchersInstallation
|
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_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
|
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
|
# Check if GE-Proton is installed
|
||||||
if [ -z "$proton_dir" ]; then
|
if [ -z "$proton_dir" ]; then
|
||||||
# Download GE-Proton using the first URL
|
# Download GE-Proton using the first URL
|
||||||
@ -292,6 +309,8 @@ while true; do
|
|||||||
# Compare the size of the file with the expected size
|
# Compare the size of the file with the expected size
|
||||||
if [ "$file_size" -eq "$expected_size" ]; then
|
if [ "$file_size" -eq "$expected_size" ]; then
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
|
|
||||||
# The sizes match
|
# The sizes match
|
||||||
echo "The size of the GalaxySetup.exe file matches the expected size."
|
echo "The size of the GalaxySetup.exe file matches the expected size."
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user