#!/bin/bash
[
"$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"
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