From 544aec32a4dd6779c4291e7bbb670f5fa5d0ffcb Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 4 Jul 2021 03:50:01 -0400 Subject: [PATCH] Improved 64 bit wine support. Thanks Daniel Nash for the working 64 bit prefix. This prefix contains RHVoice with the BDL voice. So far, only new installs of Bloodshed use the 64 bit prefix. I will switch more over when there has been more testing. --- audiogame-manager.sh | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 6470b59..d051a81 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -440,10 +440,8 @@ install_wine_bottle() { exit 1 fi fi - mkdir -p "$HOME/.local/wine/${bottle}" export WINEPREFIX="$HOME/.local/wine/${bottle}" # Arguments to the function are dependancies to be installed. - (DISPLAY="" wineboot -u # Get location of mono and gecko. monoPath="$(find /usr/share/wine/mono -name "wine-mono*x86.msi")" geckoPath="$(find /usr/share/wine/gecko -name "wine-gecko*x86.msi")" @@ -455,9 +453,23 @@ install_wine_bottle() { download 'http://dl.winehq.org/wine/wine-gecko/2.40/wine_gecko-2.40-x86.msi' geckoPath="${cache}/wine_gecko-2.40-x86.msi" fi - wine msiexec /i z:"$monoPath" /quiet - wine msiexec /i z:"$geckoPath" /quiet - winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 + if [[ "${WINEARCH}" == "win32" ]]; then + # This is in a brace list to pipe through dialog. + { DISPLAY="" wineboot -u + wine msiexec /i z:"$monoPath" /quiet + wine msiexec /i z:"$geckoPath" /quiet + winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}; } | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 + else + # This is in a brace list to pipe through dialog. + download https://nashcentral.duckdns.org/projects/wine.tar.gz + { tar xf "${cache}/wine.tar.gz" -C "${HOME}/.local/wine/" + mv "${HOME}/.local/wine/.wine/drive_c/users/user" "${HOME}/.local/wine/.wine/drive_c/users/${USER}" + mv "${HOME}/.local/wine/.wine/" "${WINEPREFIX}/" + wine64 cmd /c exit + wine msiexec /i z:"$monoPath" /quiet + wine msiexec /i z:"$geckoPath" /quiet + winetricks -q $@ ${winVer:-win7} ${winetricksSettings}; } | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 + fi } @@ -1339,8 +1351,9 @@ case "${game}" in add_launcher "c:\Program Files\Games\yahtzeeB\BGYahtzee.exe" ;; "Bloodshed") + export WINEARCH="win64" export winVer="win7" - install_wine_bottle speechsdk + install_wine_bottle download "http://www.samtupy.com/games/bloodshed.exe" cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/" add_launcher "c:\Program Files\bloodshed.exe"