From b3d77721b0bd8dca62e81d2aaf41807a492a2af8 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Sat, 9 Dec 2023 20:18:18 -0800 Subject: [PATCH] Add upheaval updater, and add dmidecode to check dependencies in the installer --- .update/Upheaval.sh | 14 ++++++++++++++ linux-game-manager.sh | 1 + 2 files changed, 15 insertions(+) create mode 100755 .update/Upheaval.sh diff --git a/.update/Upheaval.sh b/.update/Upheaval.sh new file mode 100755 index 0000000..0726a1c --- /dev/null +++ b/.update/Upheaval.sh @@ -0,0 +1,14 @@ +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" +} diff --git a/linux-game-manager.sh b/linux-game-manager.sh index bad24c1..52ff7f2 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -849,6 +849,7 @@ case "${game}" in ;; "Upheaval") check_architecture x86_64 + check_dependencies dmidecode get_installer "upheaval-linux-console.zip" "https://leonegaming.itch.io/upheaval" mkdir -p "${installPath}/Upheaval" unzip -d "${installPath}/Upheaval" "${cache}/upheaval-linux-console.zip"