Arcadelux update script added.
This commit is contained in:
1 parent
82edcc66b8
commit
fd72a85003
5 files changed
+193
-4
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC1091,SC2154
|
||||
|
||||
scriptDir="$(readlink -f "$0")"
|
||||
scriptDir="${scriptDir%/*}/.."
|
||||
source "${scriptDir}/.includes/dialog-interface.sh"
|
||||
source "${scriptDir}/.includes/functions.sh"
|
||||
|
||||
export game="Arcadelux"
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
mkdir -p "$cache"
|
||||
WINEPREFIX="$HOME/.local/wine64"
|
||||
gamePath="${WINEPREFIX}/drive_c/Program Files/${game}"
|
||||
|
||||
if ! update_github_release_game "riadassoum/Arcadelux" "arcadelux" "$gamePath" "Arcadelux.exe" "savedata"; then
|
||||
alert "Arcadelux Update" "Arcadelux Update" "Could not update Arcadelux."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$githubReleaseGameStatus" == "up-to-date" ]]; then
|
||||
agm_msgbox "Arcadelux Update" "Arcadelux Update" "Arcadelux is up to date."
|
||||
else
|
||||
agm_msgbox "Arcadelux Update" "Arcadelux Update" "Arcadelux has been updated."
|
||||
fi
|
||||
Reference in new issue
Block a user