From ceba4201b2fc7d5aa36bf96b63e356dcf2cbbeaa Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Dec 2020 02:03:52 -0500 Subject: [PATCH 1/2] update installer for Crazy Party to use beta 75. Added crazy-party-upgrade script in games directory. --- audiogame-manager.sh | 8 ++--- game-scripts/crazy-party-update.sh | 53 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-) create mode 100755 game-scripts/crazy-party-update.sh diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 04ea23d..eb2e360 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -650,10 +650,10 @@ case "${game}" in "Crazy Party") export winVer="win7" install_wine_bottle speechsdk - download "http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta73.zip" - unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/Crazy-Party-beta73.zip" - add_launcher "c:\Program Files\Crazy-Party-beta73\Crazy Party.exe" - rm -f "${WINEPREFIX}/drive_c/Program Files/Crazy-Party-beta73/nvdaControllerClient32.dll" + download "http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta75.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/Crazy-Party-beta75.zip" + add_launcher "c:\Program Files\Crazy-Party-beta75\Crazy Party.exe" + rm -f "${WINEPREFIX}/drive_c/Program Files/Crazy-Party-beta75/nvdaControllerClient32.dll" ;; "Crazy Tennis") install_wine_bottle speechsdk diff --git a/game-scripts/crazy-party-update.sh b/game-scripts/crazy-party-update.sh new file mode 100755 index 0000000..bd5172a --- /dev/null +++ b/game-scripts/crazy-party-update.sh @@ -0,0 +1,53 @@ +#!/usr/bin/env bash +# +# âe contents of this file are subject to the Common Public Attribution +# License Version 1.0 (the âcenseâ you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# https://opensource.org/licenses/CPAL-1.0. The License is based on the Mozilla Public License Version +# 1.1 but Sections 14 and 15 have been added to cover use of software over a +# computer network and provide for limited attribution for the Original +# Developer. In addition, Exhibit A has been modified to be consistent with +# Exhibit B. +# +# Software distributed under the License is distributed on an â ISâasis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Original Code is audiogame manager. +# +# The Original Developer is not the Initial Developer and is . If +# left blank, the Original Developer is the Initial Developer. +# +# The Initial Developer of the Original Code is Billy "Storm Dragon" Wolfe. All portions of +# the code written by Billy Wolfe are Copyright (c) 2020. All Rights +# Reserved. +# +# Contributor Michael Taboada. +# +# Contributor Jeremiah Ticket. +# +# Attribution Copyright Notice: Audiogame manager copyright 2020 Storm Dragon. All rights reserved. +# +# Attribution Phrase (not exceeding 10 words): A Stormux project +# +# Attribution URL: https://stormgames.wolfe.casa +# +# Graphic Image as provided in the Covered Code, if any. +# +# Display of Attribution Information is required in Larger +# Works which are defined in the CPAL as a work which combines Covered Code +# or portions thereof with code not governed by the terms of the CPAL. + +cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache" +configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf" +url="http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta75.zip" +(rm -v "${cache}/Crazy-Party-beta73.zip" +wget -O "${cache}/Crazy-Party-beta75.zip" "$url" || { echo "Could not download file."; exit 1; } +unzip -od "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta75.zip" +rm -fv "$HOME/.local/wine/drive_c/Program Files/Crazy-Party-beta75/nvdaControllerClient32.dll" +sed -i 's/Crazy-Party-beta73/Crazy-Party-beta75/' "$configFile" +mv -v "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/save.bin" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" +rm -rf "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/") | dialog --progressbox "updating Crazy Party, please wait..." -1 -1 + +exit 0 From 87c7c411f236d85d9a280546893f6e42da18fa93 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Dec 2020 02:07:12 -0500 Subject: [PATCH 2/2] Fixed a typo in the crazy party update script. --- game-scripts/crazy-party-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-scripts/crazy-party-update.sh b/game-scripts/crazy-party-update.sh index bd5172a..95a4363 100755 --- a/game-scripts/crazy-party-update.sh +++ b/game-scripts/crazy-party-update.sh @@ -45,7 +45,7 @@ url="http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta75.zip" (rm -v "${cache}/Crazy-Party-beta73.zip" wget -O "${cache}/Crazy-Party-beta75.zip" "$url" || { echo "Could not download file."; exit 1; } unzip -od "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta75.zip" -rm -fv "$HOME/.local/wine/drive_c/Program Files/Crazy-Party-beta75/nvdaControllerClient32.dll" +rm -fv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/nvdaControllerClient32.dll" sed -i 's/Crazy-Party-beta73/Crazy-Party-beta75/' "$configFile" mv -v "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/save.bin" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" rm -rf "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/") | dialog --progressbox "updating Crazy Party, please wait..." -1 -1