Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Date : (27-11-2012)
- # Last revision : (27-11-2012)
- # Wine version used : 1.5.18
- # Distribution used to test : Lubuntu 12.10 32bit
- # Author : Hyperfang8
- # Script licence : Public Domain
- # Program licence : Freeware/Shareware
- # Depend : Play On Linux
- [ "$PLAYONLINUX" = "" ] && exit 0
- source "$PLAYONLINUX/lib/sources"
- #System variables
- #$(eval_gettext '')
- TITLE="Lord Of The Rings Online PyLotRO patch"
- PREFIX="lotro"
- WINEVER="1.5.18"
- DOWNLOADURL="http://media.codeweavers.com/pub/other/pylotro/pylotro-setup-0.1.15a.exe"
- MDSUM="845d1004594c5f158c0ff400853cd809"
- SETUPNAME="pylotro-setup-0.1.15a.exe"
- POL_SetupWindow_Init
- POL_SetupWindow_presentation "$TITLE" "Turbine" "http://lorebook.lotro.com/wiki/LOTRO_under_Linux_and_Mac_OS/X" "HyperFang8" "$PREFIX"
- POL_Wine_SelectPrefix "$PREFIX"
- POL_System_SetArch "x86"
- POL_System_TmpCreate "$PREFIX"
- POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
- if [ "$INSTALL_METHOD" = "LOCAL" ]
- then
- POL_SetupWindow_message "$(eval_gettext 'You can download it from here: http://crossover.codeweavers.com/redirect/pylotro')" "$TITLE"
- POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup offline setup file!')" "$TITLE"
- POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
- POL_Wine start /unix "$APP_ANSWER"
- elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
- then
- cd "$POL_System_TmpDir"
- POL_Download "$DOWNLOADURL" "$MDSUM"
- POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
- POL_Wine start /unix "$POL_System_TmpDir/$SETUPNAME"
- fi
- POL_SetupWindow_message "$(eval_gettext 'Please make sure instalation is finished before pressing next!')" "$TITLE"
- POL_System_TmpDelete
- mkdir "$WINEPREFIX/drive_c/users/$USER/Application Data/PyLotRO"
- cat << EOF > "$WINEPREFIX/drive_c/users/$USER/Application Data/PyLotRO/LotROLinux.config"
- <?xml version="1.0" ?><Settings><Default.Game>LOTRO</Default.Game><LOTRO><Wine.Application>Native</Wine.Application><Wine.Program>wine</Wine.Program><Wine.Debug>fixme-all</Wine.Debug><Wine.Prefix>$WINEPREFIX</Wine.Prefix><HiRes>False</HiRes><Game.Directory>C:/Program Files/Turbine/The Lord of the Rings Online</Game.Directory><PatchClient>patchclient.dll</PatchClient><Hide.Main.Window>False</Hide.Main.Window><Realm>Gilrain</Realm><Language>English</Language><Account>hyperfang8</Account></LOTRO></Settings>
- EOF
- POL_Shortcut "pylotro.exe" "$TITLE"
- POL_SetupWindow_Close
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement