Description:
StarCraft (together with its expansion BroodWar) is a military, science fiction, multiplayer, strategy game from 1998 on which players can choose between three different species: the human-like Terrans, the insectoid Zerg, the powerfully enigmatic Protoss.
In April 2017, StarCraft and BroodWar received a path and were released for free to both PC and MAC. This script aids on the download and installation of this patch (and hopefully the following patches) for Linux under the platform PlayOnLinux.
Notes:
I have tested it with "2.8-staging" in Debian jessie and worked seamlessly. I tried changing it to "2.8" after installation and stopped working (it may work with a fresh 2.8 installation, haven't tried). The script allows you to choose between downloading blizzard's installer or to choose a downloaded one (the installer does the actual donwload of the game), and the script adds shortcuts for the game and the map editor at the end. It does require wget, but it is used through the playonlinux wrapper, the normal download method does not seem to work.
Script:
#!/bin/bash
# Date : 2012-05-25
# Wine version used : 2.8-staging
# Distribution used to test : Debian GNU/Linux 8.8 (jessie)
# Author : palas
# Only For : http://www.playonmac.com
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_SetupWindow_message "This script will help you download and install StarCraft." "Installing StarCraft"
POL_Wine_SelectPrefix "Starcraft"
POL_Wine_PrefixCreate "2.8-staging"
POL_System_TmpCreate "StarcraftInstallation"
cd "$POL_System_TmpDir"
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
POL_SetupWindow_wait "Please wait. Downloading installer..." "Installing StarCraft"
POL_System_wget "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT"
mv "getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT" "setup.exe"
POL_SetupWindow_wait_next_signal "Please wait. Installing..." "Installing StarCraft"
wine "$POL_System_TmpDir/setup.exe"
POL_SetupWindow_detect_exit
else
POL_SetupWindow_browse "Please select the installation file to run." "Installing StarCraft"
POL_SetupWindow_wait_next_signal "Please wait. Installing..." "Installing StarCraft"
wine "$APP_ANSWER"
POL_SetupWindow_detect_exit
fi
POL_SetupWindow_message "Please, click next when the installation process has finshed." "Installing StarCraft"
POL_System_TmpDelete
POL_Shortcut "StarCraft.exe" "Starcraft - BroodWar"
POL_Shortcut "StarEdit.exe" "Starcraft Map Editor"
POL_SetupWindow_Close
exit
Install resources:
Screenshots: