Scripts pour installer des applications sous PlayOnLinux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.3KB

  1. #!/bin/bash
  2. # Date : (2018-10-13)
  3. # Wine version used : 3.17
  4. # Author : Norore
  5. # Licence : GPLv3
  6. # PlayOnLinux: 4.2.10
  7. # Only For : http://www.playonlinux.com
  8. # Notes: This script uses latest wine version. For now it is possible to install battle.net and log in. Games not tested.
  9. [ "$PLAYONLINUX" = "" ] && exit 0
  10. source "$PLAYONLINUX/lib/sources"
  11. # Setting the variables
  12. PREFIX="battle.net"
  13. WINEVERSION='3.17'
  14. POL_System_SetArch "amd64"
  15. TITLE="Battle.Net"
  16. EDITOR="Blizzard Entertainment Inc."
  17. GAME_URL="https://www.blizzard.com/fr-fr/apps/battle.net/desktop"
  18. AUTHOR="Norore"
  19. #Initialization
  20. POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
  21. POL_SetupWindow_Init
  22. POL_SetupWindow_SetID 2599
  23. POL_Debug_Init
  24. # Presentation
  25. POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  26. POL_System_TmpCreate "$PREFIX"
  27. cd "$POL_System_TmpDir"
  28. curl -s --output "Battle.net-Setup.exe" 'https://eu.battle.net/download/getInstaller?os=win&installer=Battle.net-Setup.exe'
  29. # Create Prefix
  30. POL_Wine_SelectPrefix "$PREFIX"
  31. POL_Wine_PrefixCreate "$WINEVERSION"
  32. # Configuration
  33. Set_OS "win10"
  34. # Dependencies
  35. # Source: https://us.battle.net/forums/en/d3/topic/16774227309
  36. POL_Install_corefonts
  37. POL_Install_dotnet45
  38. POL_Install_dxfullsetup
  39. POL_Install_gdiplus
  40. POL_Install_gecko
  41. POL_Install_msxml3
  42. POL_Install_msxml4
  43. POL_Install_msxml6
  44. POL_Install_RegisterFonts
  45. POL_Install_riched20
  46. POL_Install_riched30
  47. POL_Install_tahoma
  48. POL_Install_tahoma2
  49. POL_Install_vcrun2010
  50. POL_Install_vcrun2012
  51. POL_Install_vcrun2013
  52. # DLL's configuration
  53. #POL_Wine_OverrideDLL "native" "d3dx10_43" "d3dx11_43" "d3dx11_42" "d3dx9_36" "d3dx9_42" "d3dx9_43"
  54. # Installation
  55. POL_SetupWindow_message "$(eval_gettext 'NOTICE: Do not close $TITLE until installation completes and you are at the $TITLE login window. ')" "$TITLE"
  56. POL_Wine "$POL_System_TmpDir/Battle.net-Setup.exe"
  57. POL_Wine_WaitExit "$TITLE"
  58. # Create Shortcut
  59. POL_Shortcut "Battle.net Launcher.exe" "$TITLE"
  60. # Cleanup
  61. POL_System_TmpDelete
  62. # Final message
  63. POL_SetupWindow_message "$(eval_gettext '$TITLE is installed')" "$TITLE"
  64. # Min memory size to run app
  65. POL_SetupWindow_VMS "128"
  66. # Rebooting
  67. POL_Wine_reboot
  68. # Exiting the POL window
  69. POL_SetupWindow_Close
  70. exit 0