Last active
November 16, 2018 07:41
-
-
Save rsanden/6f144b3db0566bb013c0d4f6f5b19fca to your computer and use it in GitHub Desktop.
wine-starcraft WoW64 binary install and setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bash # For syntax highlighting. This is not a script... | |
######################################### | |
# Part I -- Installing wine-starcraft # | |
######################################### | |
sudo su - # become root | |
apt install winbind | |
mkdir -p /opt | |
cd /opt | |
wget 'http://mirror.ryansanden.com/wine-starcraft_2017-05-07/wine-starcraft.tar.xz' | |
tar -xf wine-starcraft.tar.xz | |
rm wine-starcraft.tar.xz | |
su - gamer # the user who will be running the game | |
################################ | |
# Part II -- StarCraft Setup # | |
################################ | |
# This section should be run as the user who will be running SC, | |
# and not as root. I am using "gamer" in this example. | |
# SC is installed on a windows partition. This is the path to it.. do be sure to mount it first | |
SC_PATH='/media/gamer/4C91234567890DD8/Program Files (x86)/StarCraft' | |
ls "$SC_PATH" # this should show the StarCraft directory contents | |
INSTALLPREFIX=/opt/wine-starcraft | |
export PATH="$INSTALLPREFIX/bin:$PATH" | |
export LD_LIBRARY_PATH="$INSTALLPREFIX/lib" | |
hash -r | |
which wine # --> /opt/wine-starcraft/bin/wine | |
which wineserver # --> /opt/wine-starcraft/bin/wineserver | |
mkdir -p $HOME/WinePrefixes | |
export WINEPREFIX=$HOME/WinePrefixes/SC | |
export WINEARCH=win32 | |
wine wineboot | |
winetricks unifont | |
cd "$HOME/WinePrefixes/SC/drive_c/Program Files" | |
cp -r "$SC_PATH" . | |
chmod -R 0755 ./StarCraft | |
find ./StarCraft -type f -exec chmod 0644 "{}" \; | |
#--- make run script (optional) --- | |
cat << EOF > "$HOME/WinePrefixes/SC.run" | |
#!/bin/bash | |
export PATH="$INSTALLPREFIX/bin:\$PATH" | |
export LD_LIBRARY_PATH="$INSTALLPREFIX/lib" | |
export WINEPREFIX=$HOME/WinePrefixes/SC | |
export WINEARCH=win32 | |
wine "$HOME/WinePrefixes/SC/drive_c/Program Files/StarCraft/StarCraft.exe" | |
EOF | |
chmod 755 "$HOME/WinePrefixes/SC.run" | |
#--- Configure Wine --- | |
winecfg # Under "Applications" tab, click "Add application..." | |
# Navigate to and select "StarCraft.exe" | |
# For StarCraft.exe only, set Windows Version to "Windows XP" | |
# For "Default Settings", ensure Windows Version is "Windows 7" | |
# | |
# Under "Staging" tab, select: | |
# [x] Enable_CSMT for better graphic performance | |
# [x] Hide Wine version from applications | |
# | |
# Click "Apply" and then "OK" | |
#--- Update SC --- | |
wine "$HOME/WinePrefixes/SC/drive_c/Program Files/StarCraft/StarCraft Launcher.exe" | |
exit # to root@Host | |
# Now test it | |
su - gamer | |
$HOME/WinePrefixes/SC.run | |
exit # to root@Host | |
su - gamer # the user who will be running the game | |
######################## | |
# Part III -- Run SC # | |
######################## | |
$HOME/WinePrefixes/SC.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment