You are here

bnb

Informations

Creator Message
boma Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

battle.net

Source code

                

Contributions

Filters:

Contribute
Member Message
Dadu042 Friday 10 May 2019 at 19:32
Dadu042
Moderator

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

This script should be moved to: https://www.playonlinux.com/en/app-2599-BattleNet.html

Differences

@@ -0,0 +1,73 @@
+#!/bin/bash
+# Date : (2016-07-26)
+# Distribution used to test : Red Hat Enterprise Linux 7.2 64-bit
+# Distribution used to test : Netrunner 17 (Kubuntu 15.10 x64) - tested and working: Hearthstone & HotS
+# Distribution used to test : Linux Mint 17.3 Cinnamon 64-bit
+# Distribution used to test : ubuntustudio 16.04.1 x64
+# Author : schotty
+# Author : 7z4r (working fix for Hearthstone & HotS)
+# Author : BiTSHiFT (Language switch)
+# Licence : GPLv3
+# PlayOnLinux: 4.2.10
+# Notes: Pulls in the US instsallation file for Battle.Net.  Not aware of issues outside of North America or the US, but this might be the cause if any do arise.
+ 
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+PREFIX="battle.net"
+WINEVERSION="1.9.15"
+POL_System_SetArch "x86"
+TITLE="Battle.Net"
+EDITOR="Blizzard Entertainment Inc."
+GAME_URL="http://us.battle.net/en"
+AUTHOR="Schotty"
+ 
+#Initialization
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2599
+ 
+POL_Debug_Init
+ 
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+POL_SetupWindow_menu_list "$(eval_gettext 'Please choose your desired locale')" "$TITLE" "enGB~enUS~deDE~esES~frFR~ruRU~itIT~ptPT" "~"
+CLIENT_NAME="Battle.net-Setup-"$APP_ANSWER".exe"
+DOWNLOAD_BASE="http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/"
+POL_System_TmpCreate "$PREFIX"
+ 
+cd "$POL_System_TmpDir"
+POL_Download "$DOWNLOAD_BASE$CLIENT_NAME"
+ 
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+ 
+# Configuration
+Set_OS "win7"
+ 
+POL_Wine_OverrideDLL "native,builtin" "*msvcr90" "msvcp100" "dbghelp"
+# not sure if this is really needed:
+POL_Wine_OverrideDLL "disabled" "d3dcompiler_46"
+ 
+# Dependencies
+POL_Call POL_Install_corefonts
+ 
+# Installation
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: Do not close $TITLE until installation completes and you are at the $TITLE login window. ')" "$TITLE"
+ 
+POL_Wine "$POL_System_TmpDir/$CLIENT_NAME"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+ 
+POL_SetupWindow_VMS "64"
+POL_Wine_reboot
+ 
+# Create Shortcut
+POL_Shortcut "Battle.net Launcher.exe" "$TITLE"
+ 
+# Cleanup
+POL_System_TmpDelete
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2016-07-26)
# Distribution used to test : Red Hat Enterprise Linux 7.2 64-bit
# Distribution used to test : Netrunner 17 (Kubuntu 15.10 x64) - tested and working: Hearthstone & HotS
# Distribution used to test : Linux Mint 17.3 Cinnamon 64-bit
# Distribution used to test : ubuntustudio 16.04.1 x64
# Author : schotty
# Author : 7z4r (working fix for Hearthstone & HotS)
# Author : BiTSHiFT (Language switch)
# Licence : GPLv3
# PlayOnLinux: 4.2.10
# Notes: Pulls in the US instsallation file for Battle.Net.  Not aware of issues outside of North America or the US, but this might be the cause if any do arise.
 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="battle.net"
WINEVERSION="1.9.15"
POL_System_SetArch "x86"
TITLE="Battle.Net"
EDITOR="Blizzard Entertainment Inc."
GAME_URL="http://us.battle.net/en"
AUTHOR="Schotty"
 
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 2599
 
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
POL_SetupWindow_menu_list "$(eval_gettext 'Please choose your desired locale')" "$TITLE" "enGB~enUS~deDE~esES~frFR~ruRU~itIT~ptPT" "~"
CLIENT_NAME="Battle.net-Setup-"$APP_ANSWER".exe"
DOWNLOAD_BASE="http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/"
POL_System_TmpCreate "$PREFIX"
 
cd "$POL_System_TmpDir"
POL_Download "$DOWNLOAD_BASE$CLIENT_NAME"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
# Configuration
Set_OS "win7"
 
POL_Wine_OverrideDLL "native,builtin" "*msvcr90" "msvcp100" "dbghelp"
# not sure if this is really needed:
POL_Wine_OverrideDLL "disabled" "d3dcompiler_46"
 
# Dependencies
POL_Call POL_Install_corefonts
 
# Installation
POL_SetupWindow_message "$(eval_gettext 'NOTICE: Do not close $TITLE until installation completes and you are at the $TITLE login window. ')" "$TITLE"
 
POL_Wine "$POL_System_TmpDir/$CLIENT_NAME"
POL_Wine_WaitExit "$TITLE" --allow-kill
 
POL_SetupWindow_VMS "64"
POL_Wine_reboot
 
# Create Shortcut
POL_Shortcut "Battle.net Launcher.exe" "$TITLE"
 
# Cleanup
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042