From ab5626954c4da06a94020eb049a97a7511a040c1 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 19 Sep 2020 12:15:18 -0400 Subject: [PATCH 1/3] jStarted work on installation tool for audiogame-manager packages. --- setup.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..6d57e84 --- /dev/null +++ b/setup.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Installer/configuration tool for wine +# If this fails on your system, please contact storm_dragon@linux-a11y.org + +is_function() { + LC_ALL=C type "$1" 2> /dev/null | grep -q "$1 is a function" +} + +configure_arch() { + declare -a packageList=(cabextract dos2unix unzip wget wine winetricks wine_gecko wine-mono sdl2 ncurses mpg123 libpulse libpng libjpeg-turbo gnutls alsa-plugins alsa-lib mesa openal xz) + if [[ "$(uname -m)" == "x86_64" ]]; then + # Enable multilib + sudo sed -i '/^#\[multilib\]$/{{N;s/^#\[multilib\]\n#Include = \/etc\/pacman.d\/mirrorlist$/[multilib]\nInclude = \/etc\/pacman.d\/mirrorlist/;t;P;D}}' /etc/pacman.conf + # include lib32 packages. + packageList+=(lib32-sdl2 lib32-ncurses lib32-mpg123 lib32-libpulse lib32-libpng lib32-libjpeg-turbo lib32-gnutls lib32-alsa-plugins lib32-alsa-lib lib32-mesa lib32-openal) + fi + sudo pacman -Sy --needed ${packageList[*]} +} + + +distro="$(head -1 /etc/issue | cut -d ' ' -f1)" +distro="${distro,,}" + +if is_function configure_${distro} ; then + configure_${distro} +else + echo "${distro^} is not yet supported. If you want it added, please contact storm_dragon@linux-a11y.org" | fold -s -w 72 +fi + +exit 0 From 69c8ca4b71fb1789ef757d6c6fae3d3656bf75ec Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 20 Sep 2020 00:07:50 -0400 Subject: [PATCH 2/3] Added Crazy Party. Did a little more work on the setup.sh script. --- audiogame-manager.sh | 21 +++++++++++++++++++++ setup.sh | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 50c5f97..7ec6b3a 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -273,6 +273,7 @@ gameList=( "Adrian's Doom" "Battle Zone" "Bloodshed" + "Crazy Party" "Easter Quest" "Kitchensinc Games" "Light Cars" @@ -284,6 +285,7 @@ gameList=( "Survive the Wild" "Swamp" "The Blind Swordsman" + "The Road to Rage" "Technoshock" "Top Speed 3" "Q9" @@ -341,6 +343,14 @@ case "${game}" in download "http://www.samtupy.com/games/bloodshed.exe" cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/" ;; + "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" + rm -f "$WINEPREFIX/drive_c/Program Files/Crazy-Party-beta73/nvdaControllerClient32.dll" + add_launcher "c:\Program Files\Crazy-Party-beta73\Crazy Party.exe" + ;; "Easter Quest") install_wine_bottle download "https://agarchive.net/games/mt/easter%20quest%20setup.exe" @@ -423,6 +433,17 @@ case "${game}" in unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/theblindswordsmanPC.zip" add_launcher "c:\Program Files\TheBlindSwordsman.exe" ;; + "The Road to Rage") + if [[ "$(uname -m)" != "x86_64" ]]; then + echo "Sorry, this game is only supported on 64 bit systems." + exit 0 + fi + export WINEARCH=win64 + install_wine_bottle speechsdk + download "https://iamtalon.me/games/rtr_ultimate.zip" + unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/rtr_ultimate.zip" + add_launcher "c:\Program Files\rtr_Ultimate\trtr.exe" + ;; "Technoshock") install_wine_bottle download "http://tiflocomp.ru/download/games/technoshock_140b_en.zip" "http://tiflocomp.ru/download/games/technoshock140b_en_update.zip" diff --git a/setup.sh b/setup.sh index 6d57e84..6e4446f 100755 --- a/setup.sh +++ b/setup.sh @@ -18,6 +18,13 @@ configure_arch() { sudo pacman -Sy --needed ${packageList[*]} } +configure_debian() { + declare -a packageList=(winehq-stable) + # make sure 32 bit libraries are available + sudo dpkg --add-architecture i386 + sudo apt install --install-recommends ${packageList[*]} +} + distro="$(head -1 /etc/issue | cut -d ' ' -f1)" distro="${distro,,}" From 3e88c60ee39ad8cfd84c00d355821dabf05608b3 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 20 Sep 2020 10:59:22 -0400 Subject: [PATCH 3/3] Added Crazy Party. Did a little more work on the setup.sh script. --- audiogame-manager.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 7ec6b3a..d192238 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -384,6 +384,7 @@ case "${game}" in add_launcher "c:\Program Files\lWorks\Lockpick\lockpick.exe" ;; "Oh Shit!") + export winVer="win7" install_wine_bottle msvcrt40 speechsdk download "http://samtupy.com/stevend/oh_shit.zip" unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/oh_shit.zip"