#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
scriptauthor=
"Matthew Bauer"
_appname=
"roblox"
appname=
"Roblox"
basesite=
"roblox.com"
appversion=
"$(curl -s "
http:
//setup
.$basesite
/version
.txt
" | cut -f2 -d '-')"
appcreator=
"the Roblox Corporation"
setup=
"Roblox.exe"
POL_SetupWindow_Init
POL_SetupWindow_presentation
"$appname"
"$appcreator"
"http://www.$basesite/"
"$scriptauthor"
"$appname"
select_prefix
"$REPERTOIRE/wineprefix/$appname/"
POL_SetupWindow_prefixcreate
Set_OS
"winxp"
Set_Managed
"On"
Set_DXGrab
"On"
POL_SetupWindow_pulsebar
"Installing applications with winetricks"
"Installing"
cd
"$REPERTOIRE/ressources/"
if
[
"`sha1sum < winetricks | sed 's/ .*//'`"
!=
"244c9a9fa501c61d99c2ab90c3434dfe9ec7ce74"
];
then
wget http:
//winezeug
.googlecode.com
/svn/trunk/winetricks
--output-document=winetricks
fi
POL_SetupWindow_pulse
"1"
bash
winetricks -q pdh
POL_SetupWindow_pulse
"10"
bash
winetricks -q wininet
POL_SetupWindow_pulse
"20"
bash
winetricks -q d3dx9
POL_SetupWindow_pulse
"30"
bash
winetricks -q gecko
POL_SetupWindow_pulse
"40"
bash
winetricks -q msxml3
POL_SetupWindow_pulse
"50"
bash
winetricks -q gdiplus
POL_SetupWindow_pulse
"60"
bash
winetricks -q wsh56
POL_SetupWindow_pulse
"80"
bash
winetricks -q urlmon
POL_SetupWindow_pulse
"100"
cd
"$REPERTOIRE/tmp"
POL_SetupWindow_download
"Roblox.exe (the installer)"
"$appname"
"http://setup.$basesite/$setup"
POL_SetupWindow_pulsebar
"Running $appname setup file. Feel free to close the browser that comes up."
"Installing..."
wine $setup
status=$?
case
$status
in
0|194);;
*)
POL_SetupWindow_message
"The error: $status has occured during installing."
"Error installing..."
;;
esac
POL_SetupWindow_pulse
"100"
cp
$REPERTOIRE
/wineprefix/
$appname
/drive_c/windows/system32
.\\
{mscoree,ddraw,shfolder,mlang,rsaehn,imagehlp,wined3d,localspl,spoolss,uxtheme,imm32,pdh,comdlg32,WINHTTP,winspool,OPENGL32}.dll winex11.drv
"$REPERTOIRE/wineprefix/$appname/drive_c/Program Files/${appname}Versions/version-$appversion"
POL_SetupWindow_pulsebar
"Changing Roblox settings for users..."
"Changing..."
for
robloxdir
in
$REPERTOIRE
/wineprefix/
$appname
/drive_c/users/
*
do
cp
"download.php"
"$robloxdir/Local Settings/Application Data/Roblox/GlobalSettings_4.xml"
done
POL_SetupWindow_pulse
"100"
POL_SetupWindow_pulsebar
"Generating Cookie files..."
"Cookies"
POL_SetupWindow_pulse
"1"
[ ! -x $REPERTOIRE
/wineprefix/Roblox/cookies
] && \\
curl -s -c $REPERTOIRE
/wineprefix/Roblox/cookies
-d username=
"`zenity --title='Roblox' --text='Username:' --entry`"
-d password=
"`zenity --title='Roblox' --text='Password:' --hide-text --entry`"
"https://www.roblox.com/login/dologin.aspx"
>
/dev/null
POL_SetupWindow_pulse
"100"
sed
-i
's/\\r//g'
$REPERTOIRE
/configurations/installed/Roblox
chmod
+x $REPERTOIRE
/configurations/installed/Roblox
POL_SetupWindow_Close