mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
Add files via upload
This commit is contained in:
parent
9ffe01f9d5
commit
9dcd7dbf65
@ -48,18 +48,7 @@ args=("$@")
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#Download Modules
|
||||||
|
|
||||||
|
|
||||||
# Check if "Decky Plugin" is one of the arguments
|
|
||||||
decky_plugin=false
|
|
||||||
for arg in "${args[@]}"; do
|
|
||||||
if [ "$arg" = "Decky Plugin" ]; then
|
|
||||||
decky_plugin=true
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Define the repository and the folders to clone
|
# Define the repository and the folders to clone
|
||||||
repo_url='https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck/archive/refs/heads/main.zip'
|
repo_url='https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck/archive/refs/heads/main.zip'
|
||||||
folders_to_clone=('requests' 'urllib3' 'steamgrid')
|
folders_to_clone=('requests' 'urllib3' 'steamgrid')
|
||||||
@ -99,6 +88,8 @@ if [ "${folders_exist}" = false ]; then
|
|||||||
rm "${zip_file_path}"
|
rm "${zip_file_path}"
|
||||||
rm -r "${parent_folder}/NonSteamLaunchers-On-Steam-Deck-main"
|
rm -r "${parent_folder}/NonSteamLaunchers-On-Steam-Deck-main"
|
||||||
fi
|
fi
|
||||||
|
#End of Download Modules
|
||||||
|
|
||||||
|
|
||||||
#Service File rough update
|
#Service File rough update
|
||||||
rm -rf ${logged_in_home}/.config/systemd/user/NSLGameScanner.py
|
rm -rf ${logged_in_home}/.config/systemd/user/NSLGameScanner.py
|
||||||
@ -121,25 +112,40 @@ curl -o $python_script_path $github_link
|
|||||||
|
|
||||||
# Define the path to the env_vars file
|
# Define the path to the env_vars file
|
||||||
env_vars="${logged_in_home}/.config/systemd/user/env_vars"
|
env_vars="${logged_in_home}/.config/systemd/user/env_vars"
|
||||||
|
#End of Rough Update of the .py
|
||||||
|
|
||||||
# Check if the env_vars file exists
|
|
||||||
if [ -f "$env_vars" ]; then
|
|
||||||
# If the file exists and the decky_plugin argument is set, run the .py file and then exit
|
|
||||||
if [ "$decky_plugin" = true ]; then
|
|
||||||
echo "env_vars file found and Decky Plugin argument set. Running the .py file..."
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check if "Decky Plugin" is one of the arguments
|
||||||
|
decky_plugin=false
|
||||||
|
for arg in "${args[@]}"; do
|
||||||
|
if [ "$arg" = "Decky Plugin" ]; then
|
||||||
|
decky_plugin=true
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# If the Decky Plugin argument is set, check if the env_vars file exists
|
||||||
|
if [ "$decky_plugin" = true ]; then
|
||||||
|
if [ -f "$env_vars" ]; then
|
||||||
|
# If the env_vars file exists, run the .py file and continue with the script
|
||||||
|
echo "Decky Plugin argument set and env_vars file found. Running the .py file..."
|
||||||
python3 $python_script_path
|
python3 $python_script_path
|
||||||
echo "Python script ran. Exiting the script."
|
echo "Python script ran. Continuing with the script..."
|
||||||
exit 0
|
|
||||||
else
|
else
|
||||||
# If the file exists but the decky_plugin argument is not set, run the .py file
|
# If the env_vars file does not exist, exit the script
|
||||||
echo "env_vars file found but Decky Plugin argument not set. Running the .py file..."
|
echo "Decky Plugin argument set but env_vars file not found. Exiting the script."
|
||||||
python3 $python_script_path
|
exit 0
|
||||||
live="and is LIVE."
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# If the file does not exist, do not run the .py file
|
# If the Decky Plugin argument is not set, continue with the script
|
||||||
echo "env_vars file not found. Not running the .py file."
|
echo "Decky Plugin argument not set. Continuing with the script..."
|
||||||
live="and is NOT LIVE."
|
python3 $python_script_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -147,6 +153,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check if any command line arguments were provided
|
# Check if any command line arguments were provided
|
||||||
if [ ${#args[@]} -eq 0 ]; then
|
if [ ${#args[@]} -eq 0 ]; then
|
||||||
# No command line arguments were provided, so check for updates and display the zenity window if necessary
|
# No command line arguments were provided, so check for updates and display the zenity window if necessary
|
||||||
@ -1207,25 +1214,24 @@ proton_dir=$(find "${logged_in_home}/.steam/root/compatibilitytools.d" -maxdepth
|
|||||||
|
|
||||||
# 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 GitHub API
|
# Download specific version of GE-Proton
|
||||||
echo "Downloading GE-Proton using the GitHub API"
|
echo "Downloading GE-Proton8-28"
|
||||||
cd "${logged_in_home}/Downloads/NonSteamLaunchersInstallation"
|
cd "${logged_in_home}/Downloads/NonSteamLaunchersInstallation"
|
||||||
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | grep .tar.gz)"
|
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags/8-28 | grep browser_download_url | cut -d\" -f4 | grep .tar.gz)"
|
||||||
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | grep .sha512sum)"
|
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags/8-28 | grep browser_download_url | cut -d\" -f4 | grep .sha512sum)"
|
||||||
sha512sum -c ./*.sha512sum
|
sha512sum -c ./*.sha512sum
|
||||||
tar -xf GE-Proton*.tar.gz -C "${logged_in_home}/.steam/root/compatibilitytools.d/"
|
tar -xf GE-Proton*.tar.gz -C "${logged_in_home}/.steam/root/compatibilitytools.d/"
|
||||||
proton_dir=$(find "${logged_in_home}/.steam/root/compatibilitytools.d" -maxdepth 1 -type d -name "GE-Proton*" | sort -V | tail -n1)
|
proton_dir=$(find "${logged_in_home}/.steam/root/compatibilitytools.d" -maxdepth 1 -type d -name "GE-Proton*" | sort -V | tail -n1)
|
||||||
echo "All done :)"
|
echo "All done :)"
|
||||||
else
|
else
|
||||||
# Check if installed version is the latest version
|
# Check if installed version is the specific version
|
||||||
installed_version=$(basename $proton_dir | sed 's/GE-Proton-//')
|
installed_version=$(basename $proton_dir | sed 's/GE-Proton-//')
|
||||||
latest_version=$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep tag_name | cut -d '"' -f 4)
|
if [ "$installed_version" != "8-28" ]; then
|
||||||
if [ "$installed_version" != "$latest_version" ]; then
|
# Download specific version of GE-Proton
|
||||||
# Download GE-Proton using the GitHub API
|
echo "Downloading GE-Proton8-28"
|
||||||
echo "Downloading GE-Proton using the GitHub API"
|
|
||||||
cd "${logged_in_home}/Downloads/NonSteamLaunchersInstallation"
|
cd "${logged_in_home}/Downloads/NonSteamLaunchersInstallation"
|
||||||
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | grep .tar.gz)"
|
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags/8-28 | grep browser_download_url | cut -d\" -f4 | grep .tar.gz)"
|
||||||
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | grep .sha512sum)"
|
curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags/8-28 | grep browser_download_url | cut -d\" -f4 | grep .sha512sum)"
|
||||||
sha512sum -c ./*.sha512sum
|
sha512sum -c ./*.sha512sum
|
||||||
tar -xf GE-Proton*.tar.gz -C "${logged_in_home}/.steam/root/compatibilitytools.d/"
|
tar -xf GE-Proton*.tar.gz -C "${logged_in_home}/.steam/root/compatibilitytools.d/"
|
||||||
proton_dir=$(find "${logged_in_home}/.steam/root/compatibilitytools.d" -maxdepth 1 -type d -name "GE-Proton*" | sort -V | tail -n1)
|
proton_dir=$(find "${logged_in_home}/.steam/root/compatibilitytools.d" -maxdepth 1 -type d -name "GE-Proton*" | sort -V | tail -n1)
|
||||||
@ -1241,6 +1247,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "10"
|
echo "10"
|
||||||
echo "# Setting files in their place"
|
echo "# Setting files in their place"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user