Вы находитесь здесь

Форум

[Script] Heroes of the Storm

Updated script + Images

Автор Replies
ThanosApostolou Saturday 3 December 2016 at 1:02
ThanosApostolou

I tried to make an updated script (with few changes) because the old one doesn't work anymore, which I submited here:

https://www.playonlinux.com/en/app-2627-Heroes_of_the_Storm.html. I created this topic because I also wanted to provide the required images/icons and I didn't know where to (the wiki isn't very clear about it, so if this isn't the way to do so, please let me know). Script:

 

#!/bin/bash

# Date : 2016-07-31 08:45

# Last revision : 2016-12-01

# Wine version used : 1.9.23-staging

# Distribution used to test : Ubuntu 16.04 64bits, manjaro

# Author : nosklo

# Last Editor: ThanosApostolou

# Depend :

  

[ "$PLAYONLINUX" = "" ] && exit 0

source "$PLAYONLINUX/lib/sources"

  

TITLE="Heroes of the Storm"

PREFIX="heroes_of_the_storm"

  

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 2627

POL_Debug_Init


POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.battle.net/heroes/en/" "EdRIn" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_System_SetArch "x86"

POL_Wine_PrefixCreate "1.9.23-staging"

  

# Might be needed if you get crashes

# POL_Wine_OverrideDLL "native,builtin" "dbghelp"

# POL_Wine_OverrideDLL "native,builtin" "winhttp"

# POL_Wine_OverrideDLL "native,builtin" "wininet"


POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0"

POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-locale-l1-1-0"

POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"

POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0"

POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-stdio-l1-1-0"

POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-convert-l1-1-0"

POL_Wine_OverrideDLL "native,builtin" "msvcp140"

POL_Wine_OverrideDLL "native,builtin" "ucrtbase"

POL_Wine_OverrideDLL "native,builtin" "vcruntime140"

POL_Wine_OverrideDLL "" "d3d11"


POL_Call POL_Install_corefonts

POL_Call POL_Install_RegisterFonts

  

# 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|Español (AL)|Português (BR) |Deutsch|Español (EU)|Português (EU)|Français|Russian|Italiano|Polski|Korean|Chinese (Taiwan)|Chinese (China)" "|"

case "$APP_ANSWER" in

    "English")

        EXE_FILE="Heroes-of-the-Storm-Setup-enUS.exe";;

    "Español (AL)")

        EXE_FILE="Heroes-of-the-Storm-Setup-esMX.exe";;

    "Português (BR)")

        EXE_FILE="Heroes-of-the-Storm-Setup-ptBR.exe";;

    "Deutsch")

        EXE_FILE="Heroes-of-the-Storm-Setup-deDE.exe";;

    "Español (EU)")

        EXE_FILE="Heroes-of-the-Storm-Setup-esES.exe";;

    "Português (EU)")

        EXE_FILE="Heroes-of-the-Storm-Setup-ptPT.exe";;

    "Français")

        EXE_FILE="Heroes-of-the-Storm-Setup-frFR.exe";;

    "Russian")

        EXE_FILE="Heroes-of-the-Storm-Setup-ruRU.exe";;

    "Italiano")

        EXE_FILE="Heroes-of-the-Storm-Setup-itIT.exe";;

    "Polski")

        EXE_FILE="Heroes-of-the-Storm-Setup-plPL.exe";;

    "Korean")

        EXE_FILE="Heroes-of-the-Storm-Setup-koKR.exe";;

    "Chinese (Taiwan)")

        EXE_FILE="Heroes-of-the-Storm-Setup-zhTW.exe";;

    "Chinese (China)")

        EXE_FILE="Heroes-of-the-Storm-Setup-zhCN.exe";;

    *)

        exit 1;;

esac

  

POL_System_TmpCreate "$PREFIX"

cd "$POL_System_TmpDir"

POL_Download "http://dist.blizzard.com/downloads/storm-installers/7C96DEC684D71DCDD4809F35F5D1E2BE/storm.1/${EXE_FILE}"

  

POL_Wine "$POL_System_TmpDir/${EXE_FILE}"

  

POL_Wine_WaitExit "$TITLE"

  

POL_System_TmpDelete

  

POL_SetupWindow_VMS "256"

POL_Wine_reboot

  

POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png" ""

POL_SetupWindow_Close

  

exit 0
 
And the images:
 
top.png: http://imgur.com/a/mG084
Heroes of the Storm-48x48: http://imgur.com/a/k6z45
Heroes of the Storm-22x22: http://imgur.com/a/3r15N
ThanosApostolou Saturday 3 December 2016 at 1:05
ThanosApostolou

The scirpt got messed up so I resend it unformated:

 

#!/bin/bash
# Date : 2016-07-31 08:45
# Last revision : 2016-12-01
# Wine version used : 1.9.23-staging
# Distribution used to test : Ubuntu 16.04 64bits, manjaro
# Author : nosklo
# Last Editor: ThanosApostolou
# Depend :
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Heroes of the Storm"
PREFIX="heroes_of_the_storm"
 
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 2627
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.battle.net/heroes/en/" "EdRIn" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "1.9.23-staging"
 
# Might be needed if you get crashes
# POL_Wine_OverrideDLL "native,builtin" "dbghelp"
# POL_Wine_OverrideDLL "native,builtin" "winhttp"
# POL_Wine_OverrideDLL "native,builtin" "wininet"
 
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-locale-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-convert-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "" "d3d11"
 
POL_Call POL_Install_corefonts
POL_Call POL_Install_RegisterFonts
 
# 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|Español (AL)|Português (BR) |Deutsch|Español (EU)|Português (EU)|Français|Russian|Italiano|Polski|Korean|Chinese (Taiwan)|Chinese (China)" "|"
case "$APP_ANSWER" in
    "English")
        EXE_FILE="Heroes-of-the-Storm-Setup-enUS.exe";;
    "Español (AL)")
        EXE_FILE="Heroes-of-the-Storm-Setup-esMX.exe";;
    "Português (BR)")
        EXE_FILE="Heroes-of-the-Storm-Setup-ptBR.exe";;
    "Deutsch")
        EXE_FILE="Heroes-of-the-Storm-Setup-deDE.exe";;
    "Español (EU)")
        EXE_FILE="Heroes-of-the-Storm-Setup-esES.exe";;
    "Português (EU)")
        EXE_FILE="Heroes-of-the-Storm-Setup-ptPT.exe";;
    "Français")
        EXE_FILE="Heroes-of-the-Storm-Setup-frFR.exe";;
    "Russian")
        EXE_FILE="Heroes-of-the-Storm-Setup-ruRU.exe";;
    "Italiano")
        EXE_FILE="Heroes-of-the-Storm-Setup-itIT.exe";;
    "Polski")
        EXE_FILE="Heroes-of-the-Storm-Setup-plPL.exe";;
    "Korean")
        EXE_FILE="Heroes-of-the-Storm-Setup-koKR.exe";;
    "Chinese (Taiwan)")
        EXE_FILE="Heroes-of-the-Storm-Setup-zhTW.exe";;
    "Chinese (China)")
        EXE_FILE="Heroes-of-the-Storm-Setup-zhCN.exe";;
    *)
        exit 1;;
esac
 
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://dist.blizzard.com/downloads/storm-installers/7C96DEC684D71DCDD4809F35F5D1E2BE/storm.1/${EXE_FILE}"
 
POL_Wine "$POL_System_TmpDir/${EXE_FILE}"
 
POL_Wine_WaitExit "$TITLE"
 
POL_System_TmpDelete
 
POL_SetupWindow_VMS "256"
POL_Wine_reboot
 
POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png" ""
POL_SetupWindow_Close
 
exit 0

ThanosApostolou Saturday 3 December 2016 at 1:08
ThanosApostolou

A better way to post the images (left.png, top.png, Heroes of the Storm-48x48, Heroes of the Storm-22x22)

     

Вы находитесь здесь: Index > Your creations. > [Script] Heroes of the Storm

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com