Pharaon

Informations

Creator Message
Toumeno

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 21278
Wine: System

Feedbacks

Source code

#!/bin/bash
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
if [ "$POL_LANG" == "fr" ]
then
LNG_NAME="Pharaon"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaon/"
else
LNG_NAME="Pharaoh"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaoh/"
fi
 
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/4/46/Pharaoh_Coverart.png --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://pharaoh.heavengames.com/" "Toumeno" "Pharaoh"

#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

#Wine Installation
POL_SetupWindow_install_wine "1.1.29"

#Préparation de Wine
select_prefix "$REPERTOIRE/wineprefix/Pharaoh"
#POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
#Configuration de Wine
Set_OS win98
Set_SoundDriver alsa
Set_Desktop On 1024 768
 
#Installation
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit 
 
POL_SetupWindow_make_shortcut "Pharaoh" "$LNG_FILE" "Pharaoh.exe" "" "$LNG_NAME"
 
#Creation Icone
convert "$CDROM/pharaoh.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$LNG_NAME"

POL_SetupWindow_message "Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum).\n\n\nDuring a game, don't forget to click on Options=>Display, and set\nthe resolution on 1024x768 (maximum)."

Set_WineVersion_Assign "1.1.29" "$LNG_NAME"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message