Merge branch 'testing' in preparation for binary release.

This commit is contained in:
Storm Dragon 2022-02-24 10:35:14 -05:00
commit 10f4871bee

View File

@ -86,10 +86,8 @@ update() {
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then
return return
fi fi
echo "There is a new version of ${0##*/} available." dialog --backtitle "Audiogame Manager" --yesno "There is a new version of ${0##*/} available.\nDo you want to update now?" -1 -1
echo "Do you want to update now?" if [[ ${?} -eq 0 ]]; then
read -r continue
if [[ "${continue,,}" =~ ^y|ye|yes$ ]]; then
if [[ -w "$0" ]]; then if [[ -w "$0" ]]; then
wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}"
chmod +x "$0" chmod +x "$0"
@ -498,6 +496,11 @@ echo "Loading documentation, please wait..."
} }
winetricks() { winetricks() {
# Report used packages to the winetricks maintainer so he knows they are being used.
if ! [[ -e "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage" ]]; then
mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/"
echo "1" > "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage"
fi
# Download or update agm's copy of winetricks # Download or update agm's copy of winetricks
if [[ ! -e "${cache}/winetricks" ]]; then if [[ ! -e "${cache}/winetricks" ]]; then
checkWinetricksUpdate="true" checkWinetricksUpdate="true"
@ -520,10 +523,10 @@ install_rhvoice() {
if [[ "$norh" == "true" ]]; then if [[ "$norh" == "true" ]]; then
return return
fi fi
download "https://rhvoice.eu-central-1.linodeobjects.com/RHVoice-voice-English-Bdl-v4.1.9-setup.exe" download "https://rhvoice.eu-central-1.linodeobjects.com/RHVoice-voice-English-Bdl-v4.1.2007.13-setup.exe"
winetricks -q win8 winetricks -q win8
echo "Installing RHVoice..." echo "Installing RHVoice..."
wine "${cache}/RHVoice-voice-English-Bdl-v4.1.9-setup.exe" & wine "${cache}/RHVoice-voice-English-Bdl-v4.1.2007.13-setup.exe" &
sleep 20 sleep 20
wineserver -k wineserver -k
} }
@ -829,6 +832,10 @@ unset noCache
# Manual installation is not default, make sure it's unset # Manual installation is not default, make sure it's unset
unset manualInstall unset manualInstall
# Set up logging
echo -e "\n\n-----> Logging started at $(date '+%A, %B %d, %Y at %I:%M%p')\n" >> "${cache}/audiogame-manager.log"
exec &> >(/usr/bin/tee -a "${cache}/audiogame-manager.log")
# The list of games available for installation. # The list of games available for installation.
# Use menu friendly names. # Use menu friendly names.
gameList=( gameList=(
@ -894,6 +901,7 @@ gameList=(
"Challenge of the Horse" "Challenge of the Horse"
#"Chopper Challenge" #"Chopper Challenge"
"Christmas WhoopAss" "Christmas WhoopAss"
"Code Dungeon"
#"Constant Battle" #"Constant Battle"
"Copter Mission" "Copter Mission"
"Crazy Party" "Crazy Party"
@ -965,12 +973,13 @@ gameList=(
"Silver Dollar" "Silver Dollar"
"Slender Lost Vision" "Slender Lost Vision"
#"Shooter" #"Shooter"
"Sonic the Hedgehog"
"Sonic Zoom" "Sonic Zoom"
#"Space Defender" #"Space Defender"
"Super Dogs Bone Hunt" "Super Dogs Bone Hunt"
"Super Egg Hunt" "Super Egg Hunt"
"Super Liam" "Super Liam"
#"Super Mario Bros" "Super Mario Bros"
"Survive the Wild" "Survive the Wild"
"Swamp" "Swamp"
"Technoshock" "Technoshock"
@ -1063,7 +1072,7 @@ case "${game}" in
install_wine_bottle xna31 speechsdk corefonts install_wine_bottle xna31 speechsdk corefonts
# Dotnet is evil. That is all. # Dotnet is evil. That is all.
DISPLAY="" winetricks -q dotnet40 DISPLAY="" winetricks -q dotnet40
winetricks -k # Really! wineserver -k # Really!
download "http://files.OutOfSightGames.com/files/a-heros-call.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll" download "http://files.OutOfSightGames.com/files/a-heros-call.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient32.dll"
unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/a-heros-call.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/a-heros-call.zip"
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient32.dll' -exec cp -v "${cache}/nvdaControllerClient32.dll" "{}" \;
@ -1568,6 +1577,17 @@ case "${game}" in
wine "${cache}/christmas whoopass setup.exe" /sp- /silent wine "${cache}/christmas whoopass setup.exe" /sp- /silent
add_launcher "c:\Program Files\Draconis Entertainment\Christmas Whoop Ass\wa.exe" add_launcher "c:\Program Files\Draconis Entertainment\Christmas Whoop Ass\wa.exe"
;; ;;
"Code Dungeon")
get_installer "codedungeon-win-64.zip" "https://stealcase.itch.io/codedungeon"
export WINEARCH=win64
export winVer="win8"
install_wine_bottle
unzip -d "$WINEPREFIX/drive_c/Program Files/code-dungeon" "${cache}/codedungeon-win-64.zip"
# Weird work around to get keyboard working.
winetricks -q usetakefocus=y
winetricks -q usetakefocus=n
add_launcher "c:\Program Files\code-dungeon\Code Dungeon.exe"
;;
"Copter Mission") "Copter Mission")
export bottle="oriol-gomez" export bottle="oriol-gomez"
export winVer="win7" export winVer="win7"
@ -1593,7 +1613,7 @@ case "${game}" in
"Crime Hunter") "Crime Hunter")
export WINEARCH=win64 export WINEARCH=win64
export winVer="win7" export winVer="win7"
install_wine_bottle install_wine_bottle sapi
download "http://masonasons.me/softs/CH2.0Win.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient64.dll" download "http://masonasons.me/softs/CH2.0Win.zip" "https://stormgames.wolfe.casa/downloads/nvdaControllerClient64.dll"
unzip -d "$WINEPREFIX/drive_c/Program Files/crime-hunter" "${cache}/CH2.0Win.zip" unzip -d "$WINEPREFIX/drive_c/Program Files/crime-hunter" "${cache}/CH2.0Win.zip"
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \;
@ -1675,7 +1695,7 @@ case "${game}" in
install_wine_bottle speechsdk msvcrt40 install_wine_bottle speechsdk msvcrt40
# Ok, more dotnet. # Ok, more dotnet.
DISPLAY="" winetricks -q dotnet48 xna40 DISPLAY="" winetricks -q dotnet48 xna40
winetricks -k # Sigh. wineserver -k # Sigh.
download "http://blind-games.com/newentombed/EntombedSetup.exe" download "http://blind-games.com/newentombed/EntombedSetup.exe"
wine "${cache}/EntombedSetup.exe" /silent wine "${cache}/EntombedSetup.exe" /silent
add_launcher "c:\Program Files\Entombed\Entombed.exe" add_launcher "c:\Program Files\Entombed\Entombed.exe"
@ -2212,6 +2232,16 @@ EOF
find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'nvdaControllerClient64.dll' -exec cp -v "${cache}/nvdaControllerClient64.dll" "{}" \;
add_launcher "c:\Program Files\shooter\shooter.exe" add_launcher "c:\Program Files\shooter\shooter.exe"
;; ;;
"Sonic the Hedgehog")
export winVer="win7"
install_wine_bottle speechsdk
download "https://www.agarchive.net/games/jeqoconGames/sonic%20the%20hedgehog.7z"
7z e -o"$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog" "${cache}/sonic the hedgehog.7z"
cp -v "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.wav "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.ogg "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.mp3 "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/sfx/
cp -v "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.wav "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.ogg "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.mp3 "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/music/
cp -v "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.wav "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.ogg "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/*.mp3 "$WINEPREFIX/drive_c/Program Files/Sonic the Hedgehog"/angles/
add_launcher "c:\Program Files\Sonic the Hedgehog\sth.exe"
;;
"Sonic Zoom") "Sonic Zoom")
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
@ -2253,6 +2283,7 @@ EOF
install_wine_bottle speechsdk install_wine_bottle speechsdk
download "https://www.agarchive.net/games/jeqoconGames/super%20mario%20bros.7z" download "https://www.agarchive.net/games/jeqoconGames/super%20mario%20bros.7z"
7z e -o"$WINEPREFIX/drive_c/Program Files/Super Mario Bros" "${cache}/super mario bros.7z" 7z e -o"$WINEPREFIX/drive_c/Program Files/Super Mario Bros" "${cache}/super mario bros.7z"
cp -v "$WINEPREFIX/drive_c/Program Files/Super Mario Bros"/*.wav "$WINEPREFIX/drive_c/Program Files/Super Mario Bros"/*.ogg "$WINEPREFIX/drive_c/Program Files/Super Mario Bros"/mario/
add_launcher "c:\Program Files\Super Mario Bros\Mario.exe" add_launcher "c:\Program Files\Super Mario Bros\Mario.exe"
;; ;;
"Survive the Wild") "Survive the Wild")