Improved the get_installer function with information about where to obtain the installation file. Added several more BG games.
This commit is contained in:
parent
096fa46199
commit
79f751c5f3
@ -339,7 +339,18 @@ get_installer() {
|
|||||||
if [[ -f "${cache}/$1" ]]; then
|
if [[ -f "${cache}/$1" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
read -p "Make sure $1 is available in either your Downloads or Desktop directory and press enter to continue." continue
|
# Create message for dialog.
|
||||||
|
local message="Make sure $1 is available in either your Downloads or Desktop directory and press enter to continue."
|
||||||
|
if [[ -n "$2" ]]; then
|
||||||
|
message+="\n\nThe last good known URL for $game is:"
|
||||||
|
message+="\n$2"
|
||||||
|
fi
|
||||||
|
if echo "$2" | xclip -selection clipboard 2> /dev/null ; then
|
||||||
|
message+="\n\nThe URL has been copied to the clipboard."
|
||||||
|
fi
|
||||||
|
dialog --ok-label "Continue" \
|
||||||
|
--backtitle "Audiogame Manager" \
|
||||||
|
--msgbox "$message" -1 -1
|
||||||
# Search the Desktop and Downloads directories for the installation file
|
# Search the Desktop and Downloads directories for the installation file
|
||||||
for i in ~/Downloads ~/Desktop ; do
|
for i in ~/Downloads ~/Desktop ; do
|
||||||
find $i -type f -name "$1" -exec cp -v {} "${cache}/" \;
|
find $i -type f -name "$1" -exec cp -v {} "${cache}/" \;
|
||||||
@ -719,6 +730,7 @@ gameList=(
|
|||||||
"Beatstar Pro"
|
"Beatstar Pro"
|
||||||
"BG 15 Puzzle"
|
"BG 15 Puzzle"
|
||||||
"BG Boggle"
|
"BG Boggle"
|
||||||
|
"BG Chess Challenge"
|
||||||
"BG Cribbage"
|
"BG Cribbage"
|
||||||
"BG Free Cell Solitaire"
|
"BG Free Cell Solitaire"
|
||||||
"BG Hearts"
|
"BG Hearts"
|
||||||
@ -729,6 +741,7 @@ gameList=(
|
|||||||
"BG Scorpion Solitaire"
|
"BG Scorpion Solitaire"
|
||||||
"BG Sudoku"
|
"BG Sudoku"
|
||||||
"BG Uno"
|
"BG Uno"
|
||||||
|
"BG Word Target"
|
||||||
"BG Yahtzee"
|
"BG Yahtzee"
|
||||||
"Bloodshed"
|
"Bloodshed"
|
||||||
"Bombercats"
|
"Bombercats"
|
||||||
@ -937,7 +950,7 @@ case "${game}" in
|
|||||||
"BG 15 Puzzle")
|
"BG 15 Puzzle")
|
||||||
bgInstaller="FPB32Setup10a.exe"
|
bgInstaller="FPB32Setup10a.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\FifteenB\FifteenB.exe"
|
add_launcher "c:\Program Files\Games\FifteenB\FifteenB.exe"
|
||||||
@ -945,15 +958,23 @@ case "${game}" in
|
|||||||
"BG Boggle")
|
"BG Boggle")
|
||||||
bgInstaller="BGB32Setup10a.exe"
|
bgInstaller="BGB32Setup10a.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\BoggleB\BoggleB.exe"
|
add_launcher "c:\Program Files\Games\BoggleB\BoggleB.exe"
|
||||||
;;
|
;;
|
||||||
|
"BG Chess Challenge")
|
||||||
|
bgInstaller="BGC32Setup10d.exe"
|
||||||
|
export bottle="bg"
|
||||||
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
|
add_launcher "c:\Program Files\Games\ChessB\BGChess.exe"
|
||||||
|
;;
|
||||||
"BG Cribbage")
|
"BG Cribbage")
|
||||||
bgInstaller="BGC32Setup12e.exe"
|
bgInstaller="BGC32Setup12e.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\CribbageB\CribbageB.exe"
|
add_launcher "c:\Program Files\Games\CribbageB\CribbageB.exe"
|
||||||
@ -961,7 +982,7 @@ case "${game}" in
|
|||||||
"BG Free Cell Solitaire")
|
"BG Free Cell Solitaire")
|
||||||
bgInstaller="BGF32Setup20.exe"
|
bgInstaller="BGF32Setup20.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\FreecellB\FreecellB.exe"
|
add_launcher "c:\Program Files\Games\FreecellB\FreecellB.exe"
|
||||||
@ -969,7 +990,7 @@ case "${game}" in
|
|||||||
"BG Klondike Solitaire")
|
"BG Klondike Solitaire")
|
||||||
bgInstaller="BGK32Setup10b.exe"
|
bgInstaller="BGK32Setup10b.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\KlondikeB\KlondikeB.exe"
|
add_launcher "c:\Program Files\Games\KlondikeB\KlondikeB.exe"
|
||||||
@ -977,7 +998,7 @@ case "${game}" in
|
|||||||
"BG Hearts")
|
"BG Hearts")
|
||||||
bgInstaller="BGH32Setup10b.exe"
|
bgInstaller="BGH32Setup10b.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "${bgInstaller}"
|
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\HeartsB\HeartsB.exe"
|
add_launcher "c:\Program Files\Games\HeartsB\HeartsB.exe"
|
||||||
@ -985,7 +1006,7 @@ case "${game}" in
|
|||||||
"BG LAP")
|
"BG LAP")
|
||||||
bgInstaller="LAP32Setup10.exe"
|
bgInstaller="LAP32Setup10.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "${bgInstaller}"
|
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\LAP\LAP.exe"
|
add_launcher "c:\Program Files\Games\LAP\LAP.exe"
|
||||||
@ -993,7 +1014,7 @@ case "${game}" in
|
|||||||
"BG Mine Sweeper")
|
"BG Mine Sweeper")
|
||||||
bgInstaller="MSB32Setup10.exe"
|
bgInstaller="MSB32Setup10.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "${bgInstaller}"
|
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\MinesweeperB\MinesweeperB.exe"
|
add_launcher "c:\Program Files\Games\MinesweeperB\MinesweeperB.exe"
|
||||||
@ -1001,7 +1022,7 @@ case "${game}" in
|
|||||||
"BG Penguin Solitaire")
|
"BG Penguin Solitaire")
|
||||||
bgInstaller="BPS32Setup10c.exe"
|
bgInstaller="BPS32Setup10c.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\PenguinB\PenguinB.exe"
|
add_launcher "c:\Program Files\Games\PenguinB\PenguinB.exe"
|
||||||
@ -1009,7 +1030,7 @@ case "${game}" in
|
|||||||
"BG Scorpion Solitaire")
|
"BG Scorpion Solitaire")
|
||||||
bgInstaller="BSS32Setup10.exe"
|
bgInstaller="BSS32Setup10.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\ScorpionB\ScorpionB.exe"
|
add_launcher "c:\Program Files\Games\ScorpionB\ScorpionB.exe"
|
||||||
@ -1017,23 +1038,31 @@ case "${game}" in
|
|||||||
"BG Sudoku")
|
"BG Sudoku")
|
||||||
bgInstaller="SDB32Setup10a.exe"
|
bgInstaller="SDB32Setup10a.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "$bgInstaller"
|
get_installer "$bgInstaller" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\SudokuB\SudokuB.exe"
|
add_launcher "c:\Program Files\Games\SudokuB\SudokuB.exe"
|
||||||
;;
|
;;
|
||||||
"BG Uno")
|
"BG Uno")
|
||||||
bgInstaller="BGU32Setup11a.exe"
|
bgInstaller="BGU32Setup11a.exe" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "${bgInstaller}"
|
get_installer "${bgInstaller}"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\UnoB\UnoB.exe"
|
add_launcher "c:\Program Files\Games\UnoB\UnoB.exe"
|
||||||
;;
|
;;
|
||||||
|
"BG Word Target")
|
||||||
|
bgInstaller="WTB32Setup10a.exe"
|
||||||
|
export bottle="bg"
|
||||||
|
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
|
install_wine_bottle speechsdk
|
||||||
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
|
add_launcher "c:\Program Files\Games\WordTargetB\WordTargetB.exe"
|
||||||
|
;;
|
||||||
"BG Yahtzee")
|
"BG Yahtzee")
|
||||||
bgInstaller="BGY32Setup10a.exe"
|
bgInstaller="BGY32Setup10a.exe"
|
||||||
export bottle="bg"
|
export bottle="bg"
|
||||||
get_installer "${bgInstaller}"
|
get_installer "${bgInstaller}" "http://www.spoonbillsoftware.com.au/bggames.htm"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
wine "${cache}/${bgInstaller}" /silent
|
wine "${cache}/${bgInstaller}" /silent
|
||||||
add_launcher "c:\Program Files\Games\yahtzeeB\BGYahtzee.exe"
|
add_launcher "c:\Program Files\Games\yahtzeeB\BGYahtzee.exe"
|
||||||
@ -1539,7 +1568,7 @@ EOF
|
|||||||
add_launcher "c:\Program Files\scrolling battles\SBYW.exe"
|
add_launcher "c:\Program Files\scrolling battles\SBYW.exe"
|
||||||
;;
|
;;
|
||||||
"Sequence Storm")
|
"Sequence Storm")
|
||||||
get_installer "sequence-storm-win64.zip"
|
get_installer "sequence-storm-win64.zip" "https://special-magic-games-llc.itch.io/sequence-storm"
|
||||||
export WINEARCH=win64
|
export WINEARCH=win64
|
||||||
export winVer="win10"
|
export winVer="win10"
|
||||||
install_wine_bottle
|
install_wine_bottle
|
||||||
@ -1773,7 +1802,7 @@ EOF
|
|||||||
echo "In each subsequent launch, you will need to hit enter a couple times before it starts speaking."
|
echo "In each subsequent launch, you will need to hit enter a couple times before it starts speaking."
|
||||||
;;
|
;;
|
||||||
"Windows Attack")
|
"Windows Attack")
|
||||||
get_installer "WA.exe"
|
get_installer "WA.exe" "https://drive.google.com/file/d/1BwKGLP37m-Z6nyKdo8LwmU9J1CEqfMb_/view?usp=drivesdk"
|
||||||
export winVer="win7"
|
export winVer="win7"
|
||||||
install_wine_bottle speechsdk
|
install_wine_bottle speechsdk
|
||||||
cp "${cache}/WA.exe" "$WINEPREFIX/drive_c/Program Files/"
|
cp "${cache}/WA.exe" "$WINEPREFIX/drive_c/Program Files/"
|
||||||
|
Loading…
Reference in New Issue
Block a user