Tekken 3 update script added.
This commit is contained in:
1 parent
4886578fc5
commit
d5b688314c
5 files changed
+169
-16
No files matched your search
Executable
+35
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC1091 # AGM includes are resolved relative to this script.
|
||||
|
||||
scriptDir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/.."
|
||||
# shellcheck source=.includes/dialog-interface.sh
|
||||
source "${scriptDir}/.includes/dialog-interface.sh"
|
||||
# shellcheck source=.includes/functions.sh
|
||||
source "${scriptDir}/.includes/functions.sh"
|
||||
|
||||
export game="Tekken 3"
|
||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||
gamePath="$HOME/.local/wine64/drive_c/Program Files/Tekken 3 Access"
|
||||
|
||||
if ! command -v python3 >/dev/null; then
|
||||
alert "Tekken 3 Update" "Install native Linux Python 3, then run this updater again."
|
||||
exit 1
|
||||
fi
|
||||
if ! updateOutput="$(python3 "${scriptDir}/game-scripts/tekken3_setup.py" validate-installation "$gamePath" 2>&1)"; then
|
||||
alert "Tekken 3 Update" "$updateOutput"
|
||||
exit 1
|
||||
fi
|
||||
if ! mkdir -p "$cache"; then
|
||||
alert "Tekken 3 Update" "Could not create the download cache: ${cache}"
|
||||
exit 1
|
||||
fi
|
||||
if ! download "https://github.com/BlindChallengerX/Tekken3-Access/releases/download/v1.0.1/Tekken3Access-1.0.1.zip"; then
|
||||
alert "Tekken 3 Update" "Could not download Tekken 3 Access 1.0.1."
|
||||
exit 1
|
||||
fi
|
||||
if ! updateOutput="$(python3 "${scriptDir}/game-scripts/tekken3_setup.py" update \
|
||||
"${cache}/Tekken3Access-1.0.1.zip" "$gamePath" 2>&1)"; then
|
||||
alert "Tekken 3 Update" "$updateOutput"
|
||||
exit 1
|
||||
fi
|
||||
agm_msgbox "Tekken 3 Update" "Tekken 3 Update" "$updateOutput"
|
||||
Reference in new issue
Block a user