Updated and disabled the Crazy Party update script. It is disabled currently because of breaking changes between versions of CP.
This commit is contained in:
parent
23627322dd
commit
965308db8f
@ -37,16 +37,23 @@
|
|||||||
# Works which are defined in the CPAL as a work which combines Covered Code
|
# 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.
|
# or portions thereof with code not governed by the terms of the CPAL.
|
||||||
|
|
||||||
|
echo "The architecture has changed from beta 78 to 81 from 32 bit to 64 bit."
|
||||||
|
echo "If you still want to use this script, even though the update will break the installation, please remove these lines from the script, including the exit."
|
||||||
|
echo "Otherwise, uninstall and reinstall crazy party."
|
||||||
|
echo "As of yet, the new version is not ready in audiogame-manager because no speech."
|
||||||
|
exit 1
|
||||||
|
oldVersion=78
|
||||||
|
newVersion=81
|
||||||
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
|
||||||
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
|
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
|
||||||
url="http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta78.zip"
|
url="http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta${newVersion}.zip"
|
||||||
(rm -v "${cache}/Crazy-Party-beta77.zip"
|
(rm -v "${cache}/Crazy-Party-beta${oldVersion}.zip"
|
||||||
wget -O "${cache}/Crazy-Party-beta78.zip" "$url" || { echo "Could not download file."; exit 1; }
|
wget -O "${cache}/Crazy-Party-beta${newVersion}.zip" "$url" || { echo "Could not download file."; exit 1; }
|
||||||
unzip -DDod "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta78.zip"
|
unzip -DDod "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta${newVersion}.zip"
|
||||||
rm -fv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta78/nvdaControllerClient32.dll"
|
rm -fv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta${newVersion}/nvdaControllerClient32.dll"
|
||||||
sed -i 's/Crazy-Party-beta77/Crazy-Party-beta78/' "$configFile"
|
sed -i "s/Crazy-Party-beta${oldVersion}/Crazy-Party-beta${newVersion}/" "$configFile"
|
||||||
mv -v "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta77/save.bin" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta78/"
|
mv -v "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta${oldVersion}/save.bin" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta${newVersion}/"
|
||||||
cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta77/"* "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta78/" 2> /dev/null
|
cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta${oldVersion}/"* "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta${newVersion}/" 2> /dev/null
|
||||||
rm -rf "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta77/") | dialog --progressbox "updating Crazy Party, please wait..." -1 -1
|
rm -rf "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta${oldVersion}/") | dialog --progressbox "updating Crazy Party, please wait..." -1 -1
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user