Skip to content

Commit

Permalink
openra - Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Mar 31, 2024
1 parent c299fb3 commit 2c7e906
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 33 deletions.
22 changes: 5 additions & 17 deletions engines/openra/assets/run-openra-ra2-yr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,13 @@ fi
wantedversion="20200717"
filepath="./YurisRevenge-yr-playtest-20200717-x86_64.AppImage"

if [ -f "readyversion.txt" ]; then
readyversion=$(cat readyversion.txt)
echo "Found version: $readyversion"
else
readyversion="none"
echo "No Version Found"
fi
rm -rf ./squashfs-root

if [ "$readyversion" != "$wantedversion" ]; then
echo "Running Setup"
echo "Running Setup"

chmod +x "$filepath"
LD_LIBRARY_PATH="" "$filepath" --appimage-extract
chmod +x "$filepath"
LD_LIBRARY_PATH="" "$filepath" --appimage-extract

echo "$wantedversion" > ./readyversion.txt
else
echo "Not Running Setup"
fi

rm -rf ./squashfs-root
echo "$wantedversion" > ./readyversion.txt

./squashfs-root/AppRun
21 changes: 5 additions & 16 deletions engines/openra/assets/run-openra-ra2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,13 @@ fi
wantedversion="20240218"
filepath="./Romanovs.Vengeance-playtest-20240218-x86_64.AppImage"

if [ -f "readyversion.txt" ]; then
readyversion=$(cat readyversion.txt)
echo "Found version: $readyversion"
else
readyversion="none"
echo "No Version Found"
fi
rm -rf ./squashfs-root

if [ "$readyversion" != "$wantedversion" ]; then
echo "Running Setup"
echo "Running Setup"

chmod +x "$filepath"
LD_LIBRARY_PATH="" "$filepath" --appimage-extract
chmod +x "$filepath"
LD_LIBRARY_PATH="" "$filepath" --appimage-extract

echo "$wantedversion" > ./readyversion.txt
else
echo "Not Running Setup"
fi
echo "$wantedversion" > ./readyversion.txt

rm -rf ./squashfs-root
./squashfs-root/AppRun

0 comments on commit 2c7e906

Please sign in to comment.