sv ru es en fr

Applications

Choose a category

World Of Warcraft

Informations

This script is signed by PlayOnLinux.

Source code

#!/bin/bash
# Date : (2009-07-07 19-30)
# Last revision : (2011-10-18 09-43)
# Wine version used : 1.2.1
# Distribution used to test : N/A
# Author : Asimov and SuperPlumus
# Depend :

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="World of Warcraft"
PREFIX="WorldOfWarcraft"
WORKING_WINE_VERSION="1.2.1"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wow/top.jpg" "http://files.playonlinux.com/resources/setups/wow/left.jpg" "$TITLE"
POL_SetupWindow_InitWithImages
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://www.blizzard.com" "Asimov and SuperPlumus" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86" # je ne sais pas si ça fonctionne en x64
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

POL_Call POL_Install_gecko

POL_SetupWindow_InstallMethod "CD,DVD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]
then

# Le nombre de cd varie selon les boitiers
POL_SetupWindow_menu "$(eval_gettext 'Please choose')" "$TITLE" "4 CDs~5 CDs" "~"
NOMBRE_CD="$APP_ANSWER"

POL_SetupWindow_message "$(eval_gettext 'Please insert game media 1 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"

POL_SetupWindow_message "$(eval_gettext 'Please insert game media 2 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 2.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"

POL_SetupWindow_message "$(eval_gettext 'Please insert game media 3 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 3.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"

POL_SetupWindow_message "$(eval_gettext 'Please insert game media 4 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 4.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"


if [ "$NOMBRE_CD" = "5 CDs" ]; then
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 5 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 5.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
fi

cd "$POL_System_TmpDir"
POL_SetupWindow_wait "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit

fi
if [ "$INSTALL_METHOD" = "DVD" ]
then

POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"

cd "$POL_System_TmpDir"
POL_SetupWindow_wait "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit

fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
POL_SetupWindow_wait "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit

fi

POL_Wine_SetVideoDriver

POL_SetupWindow_VMS


POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

# Fichier Config.wtf
cd "$WINEPREFIX/drive_c"
cat << EOF > Config.wtf
SET gxApi "opengl"
SET ffxDeath "0"
SET SoundOutputSystem "1"
SET SoundBufferSize "150"
SET MasterSoundEffects "0"
EOF

# AddOn ApplyToForehead (évite les crash de wow sur l'écran des réglages)
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
wget "$SITE/divers/ApplyToForehead.zip"
unzip "ApplyToForehead.zip"
rm "ApplyToForehead.zip"

POL_Wine_InstallFonts
Set_SoundDriver alsa

POL_System_TmpDelete

POL_Shortcut "WoW.exe" "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" "mkdir -p \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/\""
POL_Shortcut_InsertBeforeWine "$TITLE" "cp \"$WINEPREFIX/drive_c/Config.wtf\" \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf\""

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully.')" "$TITLE"

POL_SetupWindow_Close
exit

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk6pPFUACgkQ5TH6yaoTyke3AACfb0wqfuuAt9eAhOzM7uN4vTPf
rykAnjaY7mt8cAnkyL76U/N+MtGXfL03
=vxHj
-----END PGP SIGNATURE-----
	Date : 27 October 2011 13:11:17
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici