Check for updates on launch of Slay the Text.

This commit is contained in:
stormdragon2976 2022-12-08 13:40:44 -05:00
parent 6dce9958fd
commit 5bc1dbba9d

View File

@ -337,6 +337,7 @@ game_launcher() {
;; ;;
*"main.py") *"main.py")
pushd "${game%/*}" pushd "${game%/*}"
git pull -q
python3 ${game} python3 ${game}
;; ;;
*) *)
@ -566,10 +567,12 @@ case "${game}" in
add_launcher "$(command -v gzdoom) ${doomPath}/TobyD2Deluxe.pk3" add_launcher "$(command -v gzdoom) ${doomPath}/TobyD2Deluxe.pk3"
;; ;;
"Monkey Spank") "Monkey Spank")
check_dependencies python-pygame:pygame python-xdg:xdg python-pyperclip:pyperclip python-requests:requests python-setproctitle:setproctitle
git -C "${installPath}" clone --recurse-submodules https://gitlab.com/stormdragon2976/monkeyspank.git git -C "${installPath}" clone --recurse-submodules https://gitlab.com/stormdragon2976/monkeyspank.git
add_launcher "${installPath}/monkeyspank/monkeyspank" add_launcher "${installPath}/monkeyspank/monkeyspank"
;; ;;
"Numnastics") "Numnastics")
check_dependencies python-pygame:pygame python-xdg:xdg python-pyperclip:pyperclip python-requests:requests python-setproctitle:setproctitle
git -C "${installPath}" clone --recurse-submodules https://gitlab.com/stormdragon2976/numnastics.git git -C "${installPath}" clone --recurse-submodules https://gitlab.com/stormdragon2976/numnastics.git
add_launcher "${installPath}/numnastics/numnastics" add_launcher "${installPath}/numnastics/numnastics"
;; ;;