Advertisement
Guest User

MapleRoyals PlayOnLinux install script

a guest
Apr 14th, 2016
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.64 KB | None | 0 0
  1. #!/usr/bin/env playonlinux-bash
  2. # Date : (2016-04-12 1-28)
  3. # Last revision : (2016-04-12 1-28)
  4. # Wine version used : System
  5. # Distribution used to test : Arch/Antergos
  6. # Author : WizardOfTheWest
  7.  
  8. [ "$PLAYONLINUX" = "" ] && exit 0
  9. source "$PLAYONLINUX/lib/sources"
  10.  
  11. TITLE="MapleRoyals"
  12. PREFIX="mapleroyals"
  13. CREATORS="MapleRoyals Ltd"
  14. SITE="http://www.mapleroyals.com/"
  15.  
  16. AUTHOR="WizardOfTheWest"
  17.  
  18. DOWNLOAD="https://docs.google.com/uc?id=0B_Gu7aP2WtiZTGdHMEJNbkN3Vkk&export=download"
  19. FILE_ID="0B_Gu7aP2WtiZTGdHMEJNbkN3Vkk"
  20. MD5="b25afcf7db07bed890d47fa7e28edca7"
  21.  
  22. GDOWN_SCRIPT="https://raw.githubusercontent.com/Nanolx/patchimage/60c992580671e22b2b75132d248c682775c848b5/tools/gdown.pl"
  23. GDOWN="gdown.pl"
  24. GDOWN_MD5="0d3ffba2701d5a32214e8beaef23c9c5"
  25.  
  26. WS2_32_DOWNLOAD="https://u.pomf.is/xtmtag.dll"
  27. WS2_32_FILE="xtmtag.dll"
  28. WS2_32_MD5="b703d3e8c5602f26bdaedeb1824e949a"
  29.  
  30. WS2HELP_DOWNLOAD="https://u.pomf.is/qgssie.dll"
  31. WS2HELP_FILE="qgssie.dll"
  32. WS2HELP_MD5="f5d9d4ad72538bdd1bc241f3679ee40f"
  33.  
  34. SETUP_EXE="MapleRoyalsSetup120216.exe"
  35. LAUNCH_EXE="MapleRoyals.exe"
  36.  
  37. POL_SetupWindow_Init
  38. POL_Debug_Init
  39. POL_SetupWindow_presentation "$TITLE" "$CREATORS" "$SITE" "$AUTHOR" "$PREFIX"
  40.  
  41. POL_Wine_SelectPrefix "$PREFIX"
  42. POL_Wine_PrefixCreate
  43.  
  44. POL_System_TmpCreate "$PREFIX"
  45. cd "$POL_System_TmpDir"
  46.  
  47. POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  48.  
  49. if [ "$INSTALL_METHOD" = "LOCAL" ]
  50. then
  51.     POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
  52.     INSTALLER="$APP_ANSWER"
  53. elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  54. then
  55.       #Required for downloading large files from Google Drive
  56.     POL_Download "$GDOWN_SCRIPT" "$GDOWN_MD5"
  57.     chmod +x $GDOWN
  58.  
  59.     POL_SetupWindow_wait "Please wait while $TITLE is downloaded." "$TITLE"
  60.     ./$GDOWN "$DOWNLOAD" "$SETUP_EXE"
  61.     INSTALLER="$POL_System_TmpDir/$SETUP_EXE"
  62. fi
  63.  
  64. POL_SetupWindow_wait "Please wait while $TITLE is installed."
  65. POL_Wine "$INSTALLER"
  66.  
  67. #Required DLLs
  68. #v4.10.0.2222 http://www.dll-files.com/dllindex/dll-files.shtml?ws2_32
  69. POL_Download "$WS2_32_DOWNLOAD" "$WS2_32_MD5"
  70. mv "$WS2_32_FILE" "$HOME/.PlayOnLinux/wineprefix/$PREFIX/drive_c/windows/system32/ws2_32.dll"
  71. #v6.3.9600.16384 http://www.dll-files.com/dllindex/dll-files.shtml?ws2help
  72. POL_Download "$WS2HELP_DOWNLOAD" "$WS2HELP_MD5"
  73. mv "$WS2HELP_FILE" "$HOME/.PlayOnLinux/wineprefix/$PREFIX/drive_c/windows/system32/ws2help.dll"
  74.  
  75. Set_OS "win98"
  76. POL_Shortcut "$LAUNCH_EXE" "$TITLE"
  77. POL_SetupWindow_message "$TITLE has been successfully installed.\n\nTo play this game you will need to register an account.\nVisit http://www.mapleroyals.com" "$TITLE"
  78.  
  79. POL_System_TmpDelete
  80.  
  81. POL_SetupWindow_Close
  82. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement