Update upheaval to support both console version and the newly accessible gui version. Please reinstall which version you want to play with.

This commit is contained in:
2024-06-16 14:33:02 -07:00
parent cd5917ef74
commit e2f1f97e7c
4 changed files with 46 additions and 17 deletions

14
.update/Upheaval.sh Executable file → Normal file
View File

@ -1,14 +1,4 @@
run_update() {
local installPath="${HOME}/.local/games"
local gameName="upheaval-linux-console.zip"
for i in ~/Downloads ~/Desktop ; do
find $i -type f -name "$gameName" -exec mv -v {} "${cache}/" \;
done
# If the file is still not available abort.
if [[ ! -f "${cache}/$gameName" ]]; then
dialog --backtitle "Linux Game Manager" --msgbox "Couldn't find $gameName. Please download the file and try again." -1 -1
exit 1
fi
mkdir -p "${installPath}/upheaval"
unzip -od "${installPath}/Upheaval" "${cache}/upheaval-linux-console.zip"
echo "The Upheaval game directory has changed. Please reinstall either Upheaval Commandline or Upheaval Gui."
exit 1
}