From d4bea6d1a0819a73a07f726b43c88926fcb39dc2 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Dec 2020 12:12:28 -0500 Subject: [PATCH 1/2] fixed update script for crazy party so it will copy over any decks, games, and scripts that were custom made. --- game-scripts/crazy-party-update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/game-scripts/crazy-party-update.sh b/game-scripts/crazy-party-update.sh index 95a4363..dcf658c 100755 --- a/game-scripts/crazy-party-update.sh +++ b/game-scripts/crazy-party-update.sh @@ -48,6 +48,7 @@ unzip -od "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy- 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/" +cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/*" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" 2> /dev/null 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 db2d8e282721660e9938a57642ca7cb8a943f73f Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Dec 2020 12:56:36 -0500 Subject: [PATCH 2/2] Fixed bug in cp update script. --- game-scripts/crazy-party-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-scripts/crazy-party-update.sh b/game-scripts/crazy-party-update.sh index dcf658c..91cffa3 100755 --- a/game-scripts/crazy-party-update.sh +++ b/game-scripts/crazy-party-update.sh @@ -44,11 +44,11 @@ configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/game 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" +unzip -DDod "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta75.zip" 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/" -cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/*" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" 2> /dev/null +cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/"* "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" 2> /dev/null 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