Jesteś tutaj

Pharaon

Informations

Creator Wiadmości
Toumeno

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 22749
Wine: System

Feedbacks

Description

Isometric city-building game, 1999.

Wikipedia.

Source code

#!/bin/bash

# CHANGELOG
# [?] (2019-10-28)
#   First script.
# [Dadu042] (2019-10-30)
#   Wine 1.1.29 -> 2.22

#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 "2.22"

#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 "2.22" "$LNG_NAME"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Wiadmości
Dadu042 Wednesday 30 October 2019 at 18:31
Dadu042
Moderator

Information

This update has been approved by the team.

Differences

@@ -1,5 +1,11 @@
 #!/bin/bash
- 
+
+# CHANGELOG
+# [?] (2019-10-28)
+#   First script.
+# [Dadu042] (2019-10-30)
+#   Wine 1.1.29 -> 2.22
+
 #Vérifier que PlayOnLinux est bien exécuté avant
 [ "$PLAYONLINUX" = "" ] && exit 0 
  
@@ -30,7 +36,7 @@
 POL_SetupWindow_check_cdrom "setup.exe"
 
 #Wine Installation
-POL_SetupWindow_install_wine "1.1.29"
+POL_SetupWindow_install_wine "2.22"
 
 #Préparation de Wine
 select_prefix "$REPERTOIRE/wineprefix/Pharaoh"
@@ -56,7 +62,7 @@
 
 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"
+Set_WineVersion_Assign "2.22" "$LNG_NAME"
 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash

# CHANGELOG
# [?] (2019-10-28)
#   First script.
# [Dadu042] (2019-10-30)
#   Wine 1.1.29 -> 2.22

#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 "2.22"

#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 "2.22" "$LNG_NAME"

POL_SetupWindow_Close
exit

Odpowiedzi