borisbabic / hearthstone_hdt_linux

Contains instructions and code to get hearthstone with hdt running on linux
Apache License 2.0
40 stars 9 forks source link

Install HS with HDT on wine 8.1 ( 64bit ) on Ubuntu 22.10 - fix some stuff. #23

Open mereong269 opened 1 year ago

mereong269 commented 1 year ago

test environments : Ubuntu 22.10 wine-staging 8.1 wine (64 bit). wine prefix = .64

reference ... https://wiki.winehq.org/Ubuntu https://github.com/borisbabic/hearthstone_hdt_linux https://appdb.winehq.org/objectManager.php?sClass=version&iId=38203&sAllBugs

sudo dpkg --add-architecture i386

  1. wine 7.3 repo

wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo -H gpg -o /etc/apt/trusted.gpg.d/winehq.key.gpg --dearmor winehq.key sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

sudo apt update

  1. wine of 22.10 repo

sudo mkdir -pm755 /etc/apt/keyrings sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/kinetic/winehq-kinetic.sources

sudo apt update

  1. install wine 7.3 , HDT and battlenet.

sudo apt-mark unhold wine-staging-i386 sudo apt-mark unhold wine-staging-amd64 sudo apt-mark unhold wine-staging sudo apt-mark unhold winehq-staging

sudo apt -y install --install-recommends wine-staging-i386=7.3\~impish-1 --allow-downgrades sudo apt -y install --install-recommends wine-staging-amd64=7.3\~impish-1 --allow-downgrades sudo apt -y install --install-recommends wine-staging=7.3\~impish-1 --allow-downgrades sudo apt -y install --install-recommends winehq-staging=7.3\~impish-1 --allow-downgrades

sudo apt-mark hold wine-staging-i386 sudo apt-mark hold wine-staging-amd64 sudo apt-mark hold wine-staging sudo apt-mark hold winehq-staging

sudo apt -y install winetricks

sudo apt clean sudo apt update sudo apt -y upgrade sudo apt -y autoremove

env WINEPREFIX="$HOME/.64" wineboot --init :: if Wine prompts for installing Mono, then cancel it.

env WINEPREFIX="$HOME/.64" winetricks win10

env WINEPREFIX="$HOME/.64" winetricks --force dotnet48 corefonts

:: refer to code page. env WINEPREFIX="$HOME/.64" regedit hdt.reg

:: download latest version of HDT env WINEPREFIX="$HOME/.64" wine HDT-Installer.exe

:: download latest version of battlenet env WINEPREFIX="$HOME/.64" wine Battle.net-Setup.exe

  1. upgrade wine 8.1

sudo apt-mark unhold wine-staging-i386 sudo apt-mark unhold wine-staging-amd64 sudo apt-mark unhold wine-staging sudo apt-mark unhold winehq-staging

sudo apt -y install --install-recommends wine-staging-i386=8.1\~kinetic-1 --allow-downgrades sudo apt -y install --install-recommends wine-staging-amd64=8.1\~kinetic-1 --allow-downgrades sudo apt -y install --install-recommends wine-staging=8.1\~kinetic-1 --allow-downgrades sudo apt -y install --install-recommends winehq-staging=8.1\~kinetic-1 --allow-downgrades

sudo apt-mark hold wine-staging-i386 sudo apt-mark hold wine-staging-amd64 sudo apt-mark hold wine-staging sudo apt-mark hold winehq-staging

if it does not work battle.net, kill wineserver and then execute battle.net

env WINEPREFIX="$HOME/.64" wineserver -k