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:
parent
cd5917ef74
commit
e2f1f97e7c
14
.update/Upheaval-Commandline.sh
Executable file
14
.update/Upheaval-Commandline.sh
Executable file
@ -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_Commandline"
|
||||||
|
unzip -od "${installPath}/Upheaval_Commandline" "${cache}/upheaval-linux-console.zip"
|
||||||
|
}
|
14
.update/Upheaval-Gui.sh
Executable file
14
.update/Upheaval-Gui.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
run_update() {
|
||||||
|
local installPath="${HOME}/.local/games"
|
||||||
|
local gameName="upheaval-linux.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_Gui"
|
||||||
|
unzip -od "${installPath}/Upheaval_Gui" "${cache}/upheaval-linux.zip"
|
||||||
|
}
|
14
.update/Upheaval.sh
Executable file → Normal file
14
.update/Upheaval.sh
Executable file → Normal file
@ -1,14 +1,4 @@
|
|||||||
run_update() {
|
run_update() {
|
||||||
local installPath="${HOME}/.local/games"
|
echo "The Upheaval game directory has changed. Please reinstall either Upheaval Commandline or Upheaval Gui."
|
||||||
local gameName="upheaval-linux-console.zip"
|
exit 1
|
||||||
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"
|
|
||||||
}
|
}
|
||||||
|
@ -524,7 +524,8 @@ gameList=(
|
|||||||
"StickMUD"
|
"StickMUD"
|
||||||
"System Fault"
|
"System Fault"
|
||||||
"Trigaea"
|
"Trigaea"
|
||||||
"Upheaval"
|
"Upheaval Commandline"
|
||||||
|
"Upheaval Gui"
|
||||||
"Wurmus"
|
"Wurmus"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -891,13 +892,23 @@ case "${game}" in
|
|||||||
chmod +x "${installPath}/System_Fault/system-fault-linux-x86_64.AppImage"
|
chmod +x "${installPath}/System_Fault/system-fault-linux-x86_64.AppImage"
|
||||||
add_launcher "${installPath}/System_Fault/system-fault-linux-x86_64.AppImage"
|
add_launcher "${installPath}/System_Fault/system-fault-linux-x86_64.AppImage"
|
||||||
;;
|
;;
|
||||||
"Upheaval")
|
"Upheaval Commandline")
|
||||||
check_architecture x86_64
|
check_architecture x86_64
|
||||||
check_dependencies dmidecode
|
check_dependencies dmidecode
|
||||||
get_installer "upheaval-linux-console.zip" "https://leonegaming.itch.io/upheaval"
|
get_installer "upheaval-linux-console.zip" "https://leonegaming.itch.io/upheaval"
|
||||||
mkdir -p "${installPath}/Upheaval"
|
mkdir -p "${installPath}/Upheaval_Commandline"
|
||||||
unzip -d "${installPath}/Upheaval" "${cache}/upheaval-linux-console.zip"
|
unzip -d "${installPath}/Upheaval_Commandline" "${cache}/upheaval-linux-console.zip"
|
||||||
add_launcher "${installPath}/Upheaval/Upheaval_Command_Line"
|
add_launcher "${installPath}/Upheaval_Commandline/Upheaval_Command_Line"
|
||||||
|
;;
|
||||||
|
"Upheaval Gui")
|
||||||
|
check_architecture x86_64
|
||||||
|
check_dependencies dmidecode
|
||||||
|
get_installer "upheaval-linux.zip" "https://leonegaming.itch.io/upheaval"
|
||||||
|
mkdir -p "${installPath}/Upheaval_Gui"
|
||||||
|
unzip -d "${installPath}/Upheaval_Gui" "${cache}/upheaval-linux.zip"
|
||||||
|
add_launcher "${installPath}/Upheaval_Gui/Upheaval"
|
||||||
|
echo "To enable accessibility, press shift t when the game starts."
|
||||||
|
alert
|
||||||
;;
|
;;
|
||||||
"Wurmus")
|
"Wurmus")
|
||||||
check_architecture x86_64
|
check_architecture x86_64
|
||||||
|
Loading…
Reference in New Issue
Block a user