More fixes to installer scripts.

This commit is contained in:
Storm Dragon
2025-08-05 03:42:02 -04:00
parent 6317b2098b
commit bb1883ccd7
20 changed files with 28 additions and 25 deletions

View File

@@ -194,13 +194,16 @@ install_with_progress() {
case "$operation" in case "$operation" in
"unzip") "unzip")
unzip "$@" | agm_progressbox "Game Installation" "$message" # Always overwrite without prompting to prevent invisible terminal prompts
unzip -o "$@" | agm_progressbox "Game Installation" "$message"
;; ;;
"7z") "7z")
7z "$@" | agm_progressbox "Game Installation" "$message" # Always overwrite without prompting for 7z as well
7z -y "$@" | agm_progressbox "Game Installation" "$message"
;; ;;
"cp"|"copy") "cp"|"copy")
cp -v "$@" | agm_progressbox "Game Installation" "$message" # Always force overwrite to prevent invisible prompts in GUI mode
cp -fv "$@" | agm_progressbox "Game Installation" "$message"
;; ;;
"find") "find")
find "$@" | agm_progressbox "Game Installation" "$message" find "$@" | agm_progressbox "Game Installation" "$message"

View File

@@ -2,7 +2,7 @@ download "http://download.dracoent.com/Windows/classic/AOSetup.exe"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
export winVer="win7" export winVer="win7"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/AOSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/AOSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/AOSetup.exe" /sp- /silent wine "c:/windows/temp/AOSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/AOSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/AOSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -8,8 +8,8 @@ pushd "$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/Balatro/Mods"
(cat mod_urls.txt ; echo) | while read -r x ; do (cat mod_urls.txt ; echo) | while read -r x ; do
git clone "$x" git clone "$x"
done done
cp -v BlackHole/bin/*.dll "$WINEPREFIX/drive_c/Program Files/Balatro" cp -fv BlackHole/bin/*.dll "$WINEPREFIX/drive_c/Program Files/Balatro"
cp -v "$cache/Tolk.dll" "$WINEPREFIX/drive_c/Program Files/Balatro/tolk.dll" cp -fv "$cache/Tolk.dll" "$WINEPREFIX/drive_c/Program Files/Balatro/tolk.dll"
cp -v "$cache/Tolk.dll" BlackHole/bin/tolk.dll cp -fv "$cache/Tolk.dll" BlackHole/bin/tolk.dll
cp -v ../version.dll "$WINEPREFIX/drive_c/Program Files/Balatro" cp -fv ../version.dll "$WINEPREFIX/drive_c/Program Files/Balatro"
add_launcher 'c:\Program Files\Balatro\Balatro.exe' 'export WINEDLLOVERRIDES=version=n,b' add_launcher 'c:\Program Files\Balatro\Balatro.exe' 'export WINEDLLOVERRIDES=version=n,b'

View File

@@ -12,7 +12,7 @@ for i in "${HOME}/Downloads/dict.dat" "${HOME}/Desktop/dict.dat" ; do
fi fi
done done
if [[ "${#dictFile}" -ge 3 ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then if [[ "${#dictFile}" -ge 3 ]] && [[ ! -r "${cache}/bk3-dict.dat" ]]; then
agm_yesno "Bokurano Daibouken 3" "Bokurano Daibouken 3" "Possible English translation file found at $dictFile. Would you like to use it for BK3?" && cp -v "$dictFile" "${cache}/bk3-dict.dat" agm_yesno "Bokurano Daibouken 3" "Bokurano Daibouken 3" "Possible English translation file found at $dictFile. Would you like to use it for BK3?" && cp -fv "$dictFile" "${cache}/bk3-dict.dat"
fi fi
download "https://www.nyanchangames.com/softs/nn3_setup.exe" download "https://www.nyanchangames.com/softs/nn3_setup.exe"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)

View File

@@ -2,7 +2,7 @@ download "https://download.dracoent.com/Windows/ChangeReactionSetup.exe"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
export winVer="win7" export winVer="win7"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/ChangeReactionSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/ChangeReactionSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/ChangeReactionSetup.exe" /sp- /silent wine "c:/windows/temp/ChangeReactionSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/ChangeReactionSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/ChangeReactionSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -3,5 +3,5 @@ export winVer="win7"
download "${ipfsGateway}/ipfs/QmYx11vsMDBgjPd1coZPGHxMXf2qtf4icqmB3Q9iUazyQv?filename=ChristmasChaos.zip" "https://stormgames.wolfe.casa/downloads/Tolk.dll" download "${ipfsGateway}/ipfs/QmYx11vsMDBgjPd1coZPGHxMXf2qtf4icqmB3Q9iUazyQv?filename=ChristmasChaos.zip" "https://stormgames.wolfe.casa/downloads/Tolk.dll"
install_wine_bottle install_wine_bottle
install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files" "${cache}/ChristmasChaos.zip" install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files" "${cache}/ChristmasChaos.zip"
find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -v "${cache}/Tolk.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -fv "${cache}/Tolk.dll" "{}" \;
add_launcher "c:\Program Files\ChristmasChaos\ChristmasChaos.exe" add_launcher "c:\Program Files\ChristmasChaos\ChristmasChaos.exe"

View File

@@ -3,5 +3,5 @@ export WINEARCH=win64
export winVer="win8" export winVer="win8"
install_wine_bottle install_wine_bottle
install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files" "${cache}/Crazy-Party-beta82.zip" install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files" "${cache}/Crazy-Party-beta82.zip"
find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -v "${cache}/Tolk.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -fv "${cache}/Tolk.dll" "{}" \;
add_launcher "c:\Program Files\Crazy-Party-beta82\Crazy Party.exe" add_launcher "c:\Program Files\Crazy-Party-beta82\Crazy Party.exe"

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/classic/DMSetup.exe" download "http://download.dracoent.com/Windows/classic/DMSetup.exe"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/DMSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/DMSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/DMSetup.exe" /sp- /silent wine "c:/windows/temp/DMSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/DMSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/DMSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/classic/PBCSetup.exe" download "http://download.dracoent.com/Windows/classic/PBCSetup.exe"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/PBCSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/PBCSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/PBCSetup.exe" /sp- /silent wine "c:/windows/temp/PBCSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/PBCSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/PBCSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/classic/PBXSetup.exe" download "http://download.dracoent.com/Windows/classic/PBXSetup.exe"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/PBXSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/PBXSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/PBXSetup.exe" /sp- /silent wine "c:/windows/temp/PBXSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/PBXSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/PBXSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -7,7 +7,7 @@ if ! [ -f "$HOME/.local/wine/$bottle/drive_c/Program Files/Draconis Entertainmen
exit 1 exit 1
fi fi
download "http://download.dracoent.com/Windows/classic/PP1Setup.exe" download "http://download.dracoent.com/Windows/classic/PP1Setup.exe"
cp -v "${cache}/PP1Setup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/PP1Setup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/PP1Setup.exe" /sp- /silent wine "c:/windows/temp/PP1Setup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/PP1Setup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/PP1Setup.exe"
add_launcher "c:\Program Files\Draconis Entertainment\ESP Pinball Xtreme\pbx.exe" add_launcher "c:\Program Files\Draconis Entertainment\ESP Pinball Xtreme\pbx.exe"

View File

@@ -4,6 +4,6 @@ export winetricksSettings="vd=1024x768"
download "https://www.stefankiss.sk/files/eurofly2/Launcher_1.2.zip" "https://www.stefankiss.sk/files/eurofly2/Eurofly_2_ful_setup.exe" download "https://www.stefankiss.sk/files/eurofly2/Launcher_1.2.zip" "https://www.stefankiss.sk/files/eurofly2/Eurofly_2_ful_setup.exe"
install_wine_bottle speechsdk comctl32 install_wine_bottle speechsdk comctl32
wine "${cache}/Eurofly_2_ful_setup.exe" /silent wine "${cache}/Eurofly_2_ful_setup.exe" /silent
install_with_progress unzip "Extracting game files..." -o -d "$WINEPREFIX/drive_c/Eurofly" "${cache}/Launcher_1.2.zip" install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Eurofly" "${cache}/Launcher_1.2.zip"
add_launcher "c:\Eurofly\launcher.exe" add_launcher "c:\Eurofly\launcher.exe"
echo "Note: On first and sometimes later launch, Eurofly may take a very long time to download required files, please be patient..." echo "Note: On first and sometimes later launch, Eurofly may take a very long time to download required files, please be patient..."

View File

@@ -4,5 +4,5 @@ export winVer="win7"
download "https://www.agarchive.net/games/nyanchan/laser%20breakout.7z" "https://stormgames.wolfe.casa/downloads/laser-breakout-options.dat" download "https://www.agarchive.net/games/nyanchan/laser%20breakout.7z" "https://stormgames.wolfe.casa/downloads/laser-breakout-options.dat"
install_wine_bottle install_wine_bottle
install_with_progress 7z "Extracting game files..." x -o"$WINEPREFIX/drive_c/nyanchangame/" "$cache/laser breakout.7z" install_with_progress 7z "Extracting game files..." x -o"$WINEPREFIX/drive_c/nyanchangame/" "$cache/laser breakout.7z"
cp -v "$cache/laser-breakout-options.dat" "$WINEPREFIX/drive_c/nyanchangame/laser breakout/options.dat" cp -fv "$cache/laser-breakout-options.dat" "$WINEPREFIX/drive_c/nyanchangame/laser breakout/options.dat"
add_launcher "c:\nyanchangame\laser breakout\play.exe" add_launcher "c:\nyanchangame\laser breakout\play.exe"

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/classic/MBSetup.exe" download "http://download.dracoent.com/Windows/classic/MBSetup.exe"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/MBSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/MBSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/MBSetup.exe" /sp- /silent wine "c:/windows/temp/MBSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/MBSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/MBSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -4,5 +4,5 @@ get_installer "sbrw-win.zip" "https://masonasons.itch.io/sbrw"
download "https://stormgames.wolfe.casa/downloads/Tolk.dll" download "https://stormgames.wolfe.casa/downloads/Tolk.dll"
install_wine_bottle install_wine_bottle
install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files/sbrw" "${cache}/sbrw-win.zip" install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files/sbrw" "${cache}/sbrw-win.zip"
find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -v "${cache}/Tolk.dll" "{}" \; find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -fv "${cache}/Tolk.dll" "{}" \;
add_launcher "c:\Program Files\sbrw\sb.exe" add_launcher "c:\Program Files\sbrw\sb.exe"

View File

@@ -11,7 +11,7 @@ add_launcher "c:\Program Files\Side Party\SideParty.exe"
alert alert
sidePartyUser="$(agm_inputbox "Side Party Installation" "Side Party Installation" "Please enter a user name for Side Party score board:" "")" sidePartyUser="$(agm_inputbox "Side Party Installation" "Side Party Installation" "Please enter a user name for Side Party score board:" "")"
mkdir -p "$WINEPREFIX/drive_c/Program Files/Side Party/masonasons.me/SideParty" mkdir -p "$WINEPREFIX/drive_c/Program Files/Side Party/masonasons.me/SideParty"
cp -v "${cache}/SidePartySettings.dat" "$WINEPREFIX/drive_c/Program Files/Side Party/masonasons.me/SideParty/settings.dat" cp -fv "${cache}/SidePartySettings.dat" "$WINEPREFIX/drive_c/Program Files/Side Party/masonasons.me/SideParty/settings.dat"
if [[ ${#sidePartyUser} -gt 3 ]]; then if [[ ${#sidePartyUser} -gt 3 ]]; then
sed -i "s/Anonymous/${sidePartyUser}/" "$WINEPREFIX/drive_c/Program Files/Side Party/masonasons.me/SideParty/settings.dat" sed -i "s/Anonymous/${sidePartyUser}/" "$WINEPREFIX/drive_c/Program Files/Side Party/masonasons.me/SideParty/settings.dat"
fi fi

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/SilverDollarSetup.exe" download "http://download.dracoent.com/Windows/SilverDollarSetup.exe"
install_wine_bottle speechsdk install_wine_bottle speechsdk
cp -v "${cache}/SilverDollarSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/SilverDollarSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/SilverDollarSetup.exe" /sp- /silent wine "c:/windows/temp/SilverDollarSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/SilverDollarSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/SilverDollarSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.

View File

@@ -11,7 +11,7 @@ install_wine_bottle dx8vb quartz corefonts vb6run speechsdk
install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/Swamp.zip" install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/Swamp.zip"
# make sure the latest version is installed. # make sure the latest version is installed.
if curl -L --output "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then if curl -L --output "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then
unzip -o -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPatch.zip" install_with_progress unzip "Installing Swamp patch..." -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPatch.zip"
fi fi
$wine 'c:\Program Files\swamp\checkup.exe' /verysilent $wine 'c:\Program Files\swamp\checkup.exe' /verysilent
#$wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat' #$wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat'

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/classic/TPAXPSetup.exe" download "http://download.dracoent.com/Windows/classic/TPAXPSetup.exe"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/TPAXPSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/TPAXPSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/TPAXPSetup.exe" /sp- /silent wine "c:/windows/temp/TPAXPSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/TPAXPSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/TPAXPSetup.exe"
#winetricks -q msdxmocx # I think having this installed first breaks things. #winetricks -q msdxmocx # I think having this installed first breaks things.

View File

@@ -2,7 +2,7 @@ export winVer="win7"
# Uses standard wine path based on architecture (win32/win64) # Uses standard wine path based on architecture (win32/win64)
download "http://download.dracoent.com/Windows/classic/USSetup.exe" download "http://download.dracoent.com/Windows/classic/USSetup.exe"
install_wine_bottle vb6run dx8vb speechsdk quartz install_wine_bottle vb6run dx8vb speechsdk quartz
cp -v "${cache}/USSetup.exe" "$WINEPREFIX/drive_c/windows/temp/" cp -fv "${cache}/USSetup.exe" "$WINEPREFIX/drive_c/windows/temp/"
wine "c:/windows/temp/USSetup.exe" /sp- /silent wine "c:/windows/temp/USSetup.exe" /sp- /silent
rm -fv "$WINEPREFIX/drive_c/windows/temp/USSetup.exe" rm -fv "$WINEPREFIX/drive_c/windows/temp/USSetup.exe"
# warning warning warning: Do not change location, or installer will not function. # warning warning warning: Do not change location, or installer will not function.