Compare commits
5 Commits
00a1757ba1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 06c7891aac | |||
| e0a66b8f22 | |||
| 0c44a046b4 | |||
| 1025d5532c | |||
| 252457413c |
+19
-5
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
search_paths=("$HOME/.steam/steam/steamapps/common" "$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common" "$HOME/.local/share/Steam/steamapps/common" "/mnt" "/")
|
||||
eldenring_dir=""
|
||||
|
||||
#gets latest download url from github
|
||||
sc_download_url=$(curl -s "https://api.github.com/repos/LukeYui/EldenRingSeamlessCoopRelease/releases/latest" | jq -r '.assets[0].browser_download_url')
|
||||
@@ -9,11 +11,23 @@ if [[ -z "$sc_download_url" || "$sc_download_url" == "null" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#find elden ring install path
|
||||
eldenring_dir=$(find / -path '*/Game/*' -iname eldenring.exe -printf '%h\n' -quit 2>/dev/null)
|
||||
echo "Searching for Elden Ring game folder"
|
||||
|
||||
read -p "Is this your Elden Ring Game folder? $eldenring_dir [Y/n]: " input
|
||||
if [[ $input == "n" || $input == "N" || $input == "No" || $input == "no" ]]; then
|
||||
for i in "${search_paths[@]}"; do
|
||||
echo "Searching at $i"
|
||||
eldenring_dir=$(timeout 5 find "$i" -path '*/Game/*' -iname eldenring.exe -printf '%h\n' -quit 2>/dev/null || true)
|
||||
|
||||
if [ -n "$eldenring_dir" ]; then
|
||||
read -p "Is this your Elden Ring Game folder? $eldenring_dir [y/N]: " input
|
||||
|
||||
if [[ $input == "y" || $input == "Y" || $input == "yes" || $input == "Yes" ]]; then
|
||||
break
|
||||
fi
|
||||
eldenring_dir=""
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -z "$eldenring_dir" ]]; then
|
||||
input=""
|
||||
read -p "Please provide your Elden Ring Directory Path: " input
|
||||
if test -f "$input/eldenring.exe"; then
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# About
|
||||
A simple script to update the seamless coop mod for Elden Ring on Linux and Windows.
|
||||
A simple script to install or update the seamless coop mod for Elden Ring on Linux and Windows.
|
||||
The bash script is hand-crafted and tested, the Windows-script is AI-generated, based on the bash script. Use at your own risk!
|
||||
|
||||
# Usage
|
||||
@@ -22,6 +22,6 @@ The bash script is hand-crafted and tested, the Windows-script is AI-generated,
|
||||
# Possible Issues
|
||||
|
||||
- If the bash-script is not executing correctly, check if the following dependencies are installed:
|
||||
curl, wget, rsync, unzip, find
|
||||
curl, wget, rsync, unzip, find, jq
|
||||
|
||||
- The script uses find at root to search for your Elden Ring directory. This only takes a few seconds on my machine but could lead to longer search times on other computers. If this takes too long for you, please open an Issue
|
||||
- The script checks for common steam installation paths before checking /mnt and / for the game directory. If this is too slow or I should add more install paths, please open an issue
|
||||
Reference in New Issue
Block a user