Applications
Choose a category
Pharaon
Informations
This script is signed by PlayOnLinux.
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
Signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEABECAAYFAk1cJEEACgkQ5TH6yaoTykfaUACfde8lB4+BsLPBaNJBtBoXaWvL
LXsAnRXY4ZOitCpXVIR9rVEzT0170hMK
=lqES
-----END PGP SIGNATURE-----
Date : 16 February 2011 20:23:45
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47
Known install files