From b028836be5e54825e938fdb27504d2c6bb30236f Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 17 Dec 2020 01:06:57 -0500 Subject: [PATCH] Triple Triad now works. --- audiogame-manager.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index dcc0ae9..1fd1694 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -54,7 +54,12 @@ update() { fi # make sure the site can be reached ping -c1 stormgames.wolfe.casa &> /dev/null || return - if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/audiogame-manager | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then + if [[ "$(uname)" == "Darwin" ]]; then + local downloadFile="audiogame-manager.mac.zip" + else + local downloadFile="audiogame-manager" + fi + if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then return fi echo "There is a new version of ${0##*/} available." @@ -62,9 +67,9 @@ update() { read -r continue if [[ "${continue,,}" =~ ^y|ye|yes$ ]]; then if [[ -w "$0" ]]; then - wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/audiogame-manager" + wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" else - sudo wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/audiogame-manager" + sudo wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" fi echo "${0##*/} has been updated. Please launch the program again to use the latest version." exit 0 @@ -1054,9 +1059,12 @@ EOF ;; "Triple Triad") export winVer="win7" - install_wine_bottle vb6run dx8vb quartz + install_wine_bottle vb6run dx8vb speechsdk download "https://www.kaldobsky.com/audiogames/tripletriad.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/Triple Triad" "${cache}/tripletriad.zip" + wine "c:\Program Files\Triple Triad\Checkup.exe" & + xdotool sleep 10 key --clearmodifiers Return 2> /dev/null + wineserver -w add_launcher "c:\Program Files\Triple Triad\TripleTriad.exe" ;; "Undead Assault")