Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env playonlinux-bash
- # Date : (2016-04-12 1-28)
- # Last revision : (2016-04-12 1-28)
- # Wine version used : System
- # Distribution used to test : Arch/Antergos
- # Author : WizardOfTheWest
- [ "$PLAYONLINUX" = "" ] && exit 0
- source "$PLAYONLINUX/lib/sources"
- TITLE="MapleRoyals"
- PREFIX="mapleroyals"
- CREATORS="MapleRoyals Ltd"
- SITE="http://www.mapleroyals.com/"
- AUTHOR="WizardOfTheWest"
- DOWNLOAD="https://docs.google.com/uc?id=0B_Gu7aP2WtiZTGdHMEJNbkN3Vkk&export=download"
- FILE_ID="0B_Gu7aP2WtiZTGdHMEJNbkN3Vkk"
- MD5="b25afcf7db07bed890d47fa7e28edca7"
- GDOWN_SCRIPT="https://raw.githubusercontent.com/Nanolx/patchimage/60c992580671e22b2b75132d248c682775c848b5/tools/gdown.pl"
- GDOWN="gdown.pl"
- GDOWN_MD5="0d3ffba2701d5a32214e8beaef23c9c5"
- WS2_32_DOWNLOAD="https://u.pomf.is/xtmtag.dll"
- WS2_32_FILE="xtmtag.dll"
- WS2_32_MD5="b703d3e8c5602f26bdaedeb1824e949a"
- WS2HELP_DOWNLOAD="https://u.pomf.is/qgssie.dll"
- WS2HELP_FILE="qgssie.dll"
- WS2HELP_MD5="f5d9d4ad72538bdd1bc241f3679ee40f"
- SETUP_EXE="MapleRoyalsSetup120216.exe"
- LAUNCH_EXE="MapleRoyals.exe"
- POL_SetupWindow_Init
- POL_Debug_Init
- POL_SetupWindow_presentation "$TITLE" "$CREATORS" "$SITE" "$AUTHOR" "$PREFIX"
- POL_Wine_SelectPrefix "$PREFIX"
- POL_Wine_PrefixCreate
- POL_System_TmpCreate "$PREFIX"
- cd "$POL_System_TmpDir"
- POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
- if [ "$INSTALL_METHOD" = "LOCAL" ]
- then
- POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
- INSTALLER="$APP_ANSWER"
- elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
- then
- #Required for downloading large files from Google Drive
- POL_Download "$GDOWN_SCRIPT" "$GDOWN_MD5"
- chmod +x $GDOWN
- POL_SetupWindow_wait "Please wait while $TITLE is downloaded." "$TITLE"
- ./$GDOWN "$DOWNLOAD" "$SETUP_EXE"
- INSTALLER="$POL_System_TmpDir/$SETUP_EXE"
- fi
- POL_SetupWindow_wait "Please wait while $TITLE is installed."
- POL_Wine "$INSTALLER"
- #Required DLLs
- #v4.10.0.2222 http://www.dll-files.com/dllindex/dll-files.shtml?ws2_32
- POL_Download "$WS2_32_DOWNLOAD" "$WS2_32_MD5"
- mv "$WS2_32_FILE" "$HOME/.PlayOnLinux/wineprefix/$PREFIX/drive_c/windows/system32/ws2_32.dll"
- #v6.3.9600.16384 http://www.dll-files.com/dllindex/dll-files.shtml?ws2help
- POL_Download "$WS2HELP_DOWNLOAD" "$WS2HELP_MD5"
- mv "$WS2HELP_FILE" "$HOME/.PlayOnLinux/wineprefix/$PREFIX/drive_c/windows/system32/ws2help.dll"
- Set_OS "win98"
- POL_Shortcut "$LAUNCH_EXE" "$TITLE"
- 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"
- POL_System_TmpDelete
- POL_SetupWindow_Close
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement