New download function added to make it easier to get the installation files. Two new games added.
This commit is contained in:
parent
7e001a0208
commit
cecf26f039
@ -57,6 +57,18 @@ checklist() {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
download() {
|
||||||
|
local source=($@)
|
||||||
|
for i in "${source[@]}" ; do
|
||||||
|
local dest="${i##*/}"
|
||||||
|
dest="${dest//%20/ }"
|
||||||
|
if ! wget -O "$WINEPREFIX/drive_c/Program Files/${dest}" "${i}" ; then
|
||||||
|
echo "Could not download game."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
echo -e "Usage:\n"
|
echo -e "Usage:\n"
|
||||||
echo "With no arguments, open the game launcher."
|
echo "With no arguments, open the game launcher."
|
||||||
@ -229,6 +241,10 @@ automate_installer() {
|
|||||||
wineserver -w
|
wineserver -w
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If display isn't set assume we are launching from console and an X environment is running using display :0
|
||||||
|
if [[ -z "$DISPLAY" ]]; then
|
||||||
|
export DISPLAY=":0"
|
||||||
|
fi
|
||||||
# Settings file
|
# Settings file
|
||||||
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
|
configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/games.conf"
|
||||||
mkdir -p "${configFile%/*}"
|
mkdir -p "${configFile%/*}"
|
||||||
@ -245,8 +261,10 @@ unset manualInstall
|
|||||||
# The list of games available for installation.
|
# The list of games available for installation.
|
||||||
# Use menu friendly names.
|
# Use menu friendly names.
|
||||||
gameList=(
|
gameList=(
|
||||||
|
"Adrian's Doom"
|
||||||
"Battle Zone"
|
"Battle Zone"
|
||||||
"Bloodshed"
|
"Bloodshed"
|
||||||
|
"Easter Quest"
|
||||||
"Kitchensinc Games"
|
"Kitchensinc Games"
|
||||||
"Light Cars"
|
"Light Cars"
|
||||||
"Lockpick"
|
"Lockpick"
|
||||||
@ -291,23 +309,37 @@ done
|
|||||||
|
|
||||||
# Install game based on the selection above.
|
# Install game based on the selection above.
|
||||||
case "${game}" in
|
case "${game}" in
|
||||||
|
"Adrian's Doom")
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
download "https://agarchive.net/games/mt/adrian's%20doom.exe"
|
||||||
|
wine "$WINEPREFIX/drive_c/Program Files/adrian's doom.exe" /silent
|
||||||
|
add_launcher "c:\Program Files\Two Caring Citizens\Adrian's Doom!\adrian.exe"
|
||||||
|
rm -f "$WINEPREFIX/drive_c/Program Files/adrian's doom.exe"
|
||||||
|
;;
|
||||||
"Battle Zone")
|
"Battle Zone")
|
||||||
# Speech not working through sapi.
|
# Speech not working through sapi.
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/battle zone 13.5 setup.exe" "https://www.agarchive.net/games/gameMadnessInteractive/battle%20zone%2013.5%20setup.exe"
|
download "https://www.agarchive.net/games/gameMadnessInteractive/battle%20zone%2013.5%20setup.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/battle zone 13.5 setup.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/battle zone 13.5 setup.exe" /silent
|
||||||
add_launcher "c:\Program Files\Battle Zone\ss.exe"
|
add_launcher "c:\Program Files\Battle Zone\ss.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/battle zone 13.5 setup.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/battle zone 13.5 setup.exe"
|
||||||
;;
|
;;
|
||||||
"Bloodshed")
|
"Bloodshed")
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/bloodshed.exe" "http://www.samtupy.com/games/bloodshed.exe"
|
download "http://www.samtupy.com/games/bloodshed.exe"
|
||||||
add_launcher "c:\Program Files\bloodshed.exe"
|
add_launcher "c:\Program Files\bloodshed.exe"
|
||||||
;;
|
;;
|
||||||
|
"Easter Quest")
|
||||||
|
install_wine_bottle
|
||||||
|
download "https://agarchive.net/games/mt/easter%20quest%20setup.exe"
|
||||||
|
wine "$WINEPREFIX/drive_c/Program Files/easter quest setup.exe" /silent
|
||||||
|
add_launcher "c:\Program Files\MTGames\Easter Quest\easter.exe"
|
||||||
|
rm -f "$WINEPREFIX/drive_c/Program Files/easter quest setup.exe"
|
||||||
|
;;
|
||||||
"Kitchensinc Games")
|
"Kitchensinc Games")
|
||||||
install_wine_bottle vb6run speechsdk dx8vb
|
install_wine_bottle vb6run speechsdk dx8vb
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/Kitchen.tar.xz" "https://stormgames.wolfe.casa/downloads/kitchen.tar.xz"
|
download "https://stormgames.wolfe.casa/downloads/kitchen.tar.xz"
|
||||||
echo "Extracting files..."
|
echo "Extracting files..."
|
||||||
tar xf "$WINEPREFIX/drive_c/Program Files/Kitchen.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/"
|
tar xf "$WINEPREFIX/drive_c/Program Files/Kitchen.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/"
|
||||||
add_launcher "c:\Program Files\Kitchen's Sink\gamemenu.exe"
|
add_launcher "c:\Program Files\Kitchen's Sink\gamemenu.exe"
|
||||||
@ -315,7 +347,7 @@ case "${game}" in
|
|||||||
;;
|
;;
|
||||||
"Light Cars")
|
"Light Cars")
|
||||||
install_wine_bottle dx8vb vb6run
|
install_wine_bottle dx8vb vb6run
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/light cars setup.exe" "https://www.agarchive.net/games/lighttech/light%20cars%20setup.exe"
|
download "https://www.agarchive.net/games/lighttech/light%20cars%20setup.exe"
|
||||||
if [[ -n "$manualInstall" ]]; then
|
if [[ -n "$manualInstall" ]]; then
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/light cars setup.exe"
|
wine "$WINEPREFIX/drive_c/Program Files/light cars setup.exe"
|
||||||
else
|
else
|
||||||
@ -329,28 +361,28 @@ case "${game}" in
|
|||||||
;;
|
;;
|
||||||
"Lockpick")
|
"Lockpick")
|
||||||
install_wine_bottle vb6run dx8vb
|
install_wine_bottle vb6run dx8vb
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/lockpicksetup.exe" "http://files.l-works.net/lockpicksetup.exe"
|
wget "http://files.l-works.net/lockpicksetup.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/lockpicksetup.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/lockpicksetup.exe" /silent
|
||||||
add_launcher "c:\Program Files\lWorks\Lockpick\lockpick.exe"
|
add_launcher "c:\Program Files\lWorks\Lockpick\lockpick.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/lockpicksetup.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/lockpicksetup.exe"
|
||||||
;;
|
;;
|
||||||
"Shades of Doom")
|
"Shades of Doom")
|
||||||
install_wine_bottle vcrun6
|
install_wine_bottle vcrun6
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/sod20022.exe" "http://www.gmagames.com/sod20022.exe"
|
download "http://www.gmagames.com/sod20022.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/sod20022.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/sod20022.exe" /silent
|
||||||
add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe"
|
add_launcher "c:\Program Files\Shades of Doom 2.0\sod.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/sod20022.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/sod20022.exe"
|
||||||
;;
|
;;
|
||||||
"Super Egg Hunt")
|
"Super Egg Hunt")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/superegghuntsetup.exe" "http://files.l-works.net/superegghuntsetup.exe"
|
download "http://files.l-works.net/superegghuntsetup.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/superegghuntsetup.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/superegghuntsetup.exe" /silent
|
||||||
add_launcher "c:\Program Files\Lworks\super egg hunt\superegghunt.exe"
|
add_launcher "c:\Program Files\Lworks\super egg hunt\superegghunt.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/superegghuntsetup.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/superegghuntsetup.exe"
|
||||||
;;
|
;;
|
||||||
"Super Liam")
|
"Super Liam")
|
||||||
install_wine_bottle vb6run dx8vb
|
install_wine_bottle vb6run dx8vb
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/superliamsetup.exe" "http://files.l-works.net/superliamsetup.exe"
|
download "http://files.l-works.net/superliamsetup.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/superliamsetup.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/superliamsetup.exe" /silent
|
||||||
add_launcher "c:\Program Files\lWorks\Super Liam\sl.exe"
|
add_launcher "c:\Program Files\lWorks\Super Liam\sl.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/superliam.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/superliam.exe"
|
||||||
@ -358,27 +390,27 @@ case "${game}" in
|
|||||||
"Swamp")
|
"Swamp")
|
||||||
winetricksSettings="vd=1024x768"
|
winetricksSettings="vd=1024x768"
|
||||||
install_wine_bottle vb6run dx8vb quartz speechsdk corefonts
|
install_wine_bottle vb6run dx8vb quartz speechsdk corefonts
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/Swamp.zip" "https://kaldobsky.com/audiogames/Swamp.zip"
|
download "https://kaldobsky.com/audiogames/SwampPart1.zip" "https://kaldobsky.com/audiogames/SwampPart2.zip"
|
||||||
unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "$WINEPREFIX/drive_c/Program Files/Swamp.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "$WINEPREFIX/drive_c/Program Files/SwampPart1.zip"
|
||||||
|
unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "$WINEPREFIX/drive_c/Program Files/SwampPart2.zip"
|
||||||
# make sure the latest version is installed.
|
# make sure the latest version is installed.
|
||||||
if wget -O "$WINEPREFIX/drive_c/Program Files/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then
|
#if wget -O "$WINEPREFIX/drive_c/Program Files/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then
|
||||||
unzip -o -d "$WINEPREFIX/drive_c/Program Files/swamp" "$WINEPREFIX/drive_c/Program Files/SwampPatch.zip"
|
#unzip -o -d "$WINEPREFIX/drive_c/Program Files/swamp" "$WINEPREFIX/drive_c/Program Files/SwampPatch.zip"
|
||||||
fi
|
#fi
|
||||||
wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat'
|
wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat'
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/Swamp.zip"
|
rm -f "$WINEPREFIX/drive_c/Program Files/Swamp.zip"
|
||||||
add_launcher "c:\Program Files\swamp\Swamp.exe"
|
add_launcher "c:\Program Files\swamp\Swamp.exe"
|
||||||
;;
|
;;
|
||||||
"The Blind Swordsman")
|
"The Blind Swordsman")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/theblindswordsmanPC.zip" "http://www.evildogserver.com/theblindswordsman/theblindswordsmanPC.zip"
|
download "http://www.evildogserver.com/theblindswordsman/theblindswordsmanPC.zip"
|
||||||
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/theblindswordsmanPC.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/theblindswordsmanPC.zip"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/theblindswordsmanPC.zip"
|
rm -f "$WINEPREFIX/drive_c/Program Files/theblindswordsmanPC.zip"
|
||||||
add_launcher "c:\Program Files\TheBlindSwordsman.exe"
|
add_launcher "c:\Program Files\TheBlindSwordsman.exe"
|
||||||
;;
|
;;
|
||||||
"Technoshock")
|
"Technoshock")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/technoshock_140b_en.zip" "http://tiflocomp.ru/download/games/technoshock_140b_en.zip"
|
download "http://tiflocomp.ru/download/games/technoshock_140b_en.zip" "http://tiflocomp.ru/download/games/technoshock140b_en_update.zip"
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/technoshock_140b_en_update.zip" "http://tiflocomp.ru/download/games/technoshock140b_en_update.zip"
|
|
||||||
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/technoshock_140b_en.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/technoshock_140b_en.zip"
|
||||||
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/technoshock_140b_en_update.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/technoshock_140b_en_update.zip"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/setup_eng.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/setup_eng.exe" /silent
|
||||||
@ -389,22 +421,23 @@ case "${game}" in
|
|||||||
;;
|
;;
|
||||||
"Top Speed 3")
|
"Top Speed 3")
|
||||||
install_wine_bottle directplay
|
install_wine_bottle directplay
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/Tspeed_3.0.3.exe" "https://github.com/PlayingintheDark/TopSpeed/releases/download/h/Tspeed_3.0.3.exe"
|
download "https://github.com/PlayingintheDark/TopSpeed/releases/download/h/Tspeed_3.0.3.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/Tspeed_3.0.3.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/Tspeed_3.0.3.exe" /silent
|
||||||
add_launcher "c:\Program Files\Playing in the dark\Top Speed 3\TopSpeed.exe"
|
add_launcher "c:\Program Files\Playing in the dark\Top Speed 3\TopSpeed.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/Tspeed_3.0.3.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/Tspeed_3.0.3.exe"
|
||||||
;;
|
;;
|
||||||
"Q9")
|
"Q9")
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/q9_english_installer.exe" "http://www.blastbay.com/q9_english_installer.exe"
|
download "http://www.blastbay.com/q9_english_installer.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/q9_english_installer.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/q9_english_installer.exe" /silent
|
||||||
add_launcher "c:\Program Files\Q9 Action Game\q9.exe"
|
add_launcher "c:\Program Files\Q9 Action Game\q9.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/q9_english_installer.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/q9_english_installer.exe"
|
||||||
;;
|
;;
|
||||||
"RS Games")
|
"RS Games")
|
||||||
# Does not speak with sapi.
|
# Does not speak with sapi.
|
||||||
|
export winetricksSettings="vd=1024x768"
|
||||||
install_wine_bottle speechsdk vcrun6
|
install_wine_bottle speechsdk vcrun6
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/rsgames-client-setup-2.01.exe" "http://rsgames.org/rsdownloads/rsgclient/rsgames-client-setup-2.01.exe"
|
download "http://rsgames.org/rsdownloads/rsgclient/rsgames-client-setup-2.01.exe"
|
||||||
wine "$WINEPREFIX/drive_c/Program Files/rsgames-client-setup-2.01.exe" /silent
|
wine "$WINEPREFIX/drive_c/Program Files/rsgames-client-setup-2.01.exe" /silent
|
||||||
add_launcher "c:\Program Files\RS Games Client\rsg.exe"
|
add_launcher "c:\Program Files\RS Games Client\rsg.exe"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/rsgames-client-setup-2.01.exe"
|
rm -f "$WINEPREFIX/drive_c/Program Files/rsgames-client-setup-2.01.exe"
|
||||||
@ -412,7 +445,7 @@ case "${game}" in
|
|||||||
"Undead Assault")
|
"Undead Assault")
|
||||||
# Does not speak with sapi.
|
# Does not speak with sapi.
|
||||||
install_wine_bottle speechsdk vcrun6sp6
|
install_wine_bottle speechsdk vcrun6sp6
|
||||||
wget -O "$WINEPREFIX/drive_c/Program Files/undead_assault.zip" "http://undead-assault.com/static/files/public/undead_assault.zip"
|
download "http://undead-assault.com/static/files/public/undead_assault.zip"
|
||||||
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/undead_assault.zip"
|
unzip -d "$WINEPREFIX/drive_c/Program Files" "$WINEPREFIX/drive_c/Program Files/undead_assault.zip"
|
||||||
rm -f "$WINEPREFIX/drive_c/Program Files/undead_assault.zip"
|
rm -f "$WINEPREFIX/drive_c/Program Files/undead_assault.zip"
|
||||||
add_launcher "c:\Program Files\Undead Assault.exe"
|
add_launcher "c:\Program Files\Undead Assault.exe"
|
||||||
|
Loading…
Reference in New Issue
Block a user