bin bash Date 2014-02-08 14 54 Last revision 2014-02-09 00 46 Wine ver

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
# Date : 2014-02-08 14:54
# Last revision : 2014-02-09 00:46
# Wine version used : 1.6.2
# Distribution used to test : Ubuntu 13.10 x64
# Author : kweepeer2
# Depend :
# Known Issues :
# - Some of the buttons in the submenus of the Battle.net launcher seem to work only sporadically.
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Hearthstone"
PREFIX="hearthstone"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.battle.net/hearthstone/en/" "kweepeer2" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.6.2" # Latest stable Wine version.
# http://appdb.winehq.org/objectManager.php?sClass=version&iId=29747
POL_Call POL_Install_wininet
POL_Wine_OverrideDLL "disabled" "dbghelp"
POL_Wine_OverrideDLL "native,builtin" "msvcp100"
# Download & Install the game.
# Multiple Language support. See https://eu.battle.net/account/download/?show=hearthstone&style=hearthstone
POL_SetupWindow_menu "$(eval_gettext 'What language do you want to install?')" "Language Selection" \
"English (US)|Español (AL)|Português (BR)|English (EU)|Deutsch|Español(EU)|Português (EU)|Français|Русский|Italiano|Polski|한국어|繁體中文|简体中文" "|"
case "$APP_ANSWER" in
"English (US)")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-enUS.exe";;
"Español (AL)")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-esMX.exe";;
"Português (BR)")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-ptBR.exe";;
"English (EU)")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-enGB.exe";;
"Deutsch")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-deDE.exe";;
"Español(EU)")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-esES.exe";;
"Português (EU)")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-ptPT.exe";;
"Français")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-frFR.exe";;
"Русский")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-ruRU.exe";;
"Italiano")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-itIT.exe";;
"Polski")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-plPL.exe";;
"한국어")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-koKR.exe";;
"繁體中文")
DOWNLOAD_LINK="http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-zhTW.exe";;
"简体中文")
DOWNLOAD_LINK="http://client01.pdl.wow.battlenet.com.cn/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/beta.1/Hearthstone-Beta-Setup-zhCN.exe";;
*)
exit 1;;
esac
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "$DOWNLOAD_LINK"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
EXE_FILE="${DOWNLOAD_LINK##*/}" # Get everything after last slash.
POL_Wine "$POL_System_TmpDir/${EXE_FILE}"
POL_System_TmpDelete
POL_SetupWindow_VMS "64"
POL_Wine_reboot
POL_Shortcut "Battle.net.exe" "$TITLE"
POL_SetupWindow_Close
exit 0