From 2c7e9066d0e95d2cb2aec52551c56791ce6aa9c9 Mon Sep 17 00:00:00 2001 From: d10sfan Date: Sun, 31 Mar 2024 10:51:13 -0500 Subject: [PATCH] openra - Fix --- engines/openra/assets/run-openra-ra2-yr.sh | 22 +++++----------------- engines/openra/assets/run-openra-ra2.sh | 21 +++++---------------- 2 files changed, 10 insertions(+), 33 deletions(-) diff --git a/engines/openra/assets/run-openra-ra2-yr.sh b/engines/openra/assets/run-openra-ra2-yr.sh index 026f53933..a0f7a9abe 100755 --- a/engines/openra/assets/run-openra-ra2-yr.sh +++ b/engines/openra/assets/run-openra-ra2-yr.sh @@ -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 diff --git a/engines/openra/assets/run-openra-ra2.sh b/engines/openra/assets/run-openra-ra2.sh index 1ded71c08..a7848d302 100755 --- a/engines/openra/assets/run-openra-ra2.sh +++ b/engines/openra/assets/run-openra-ra2.sh @@ -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