Forums
Jedi Knight + patch 1.01
Auteur |
Réponses |
dlzerocool |
Jeudi 26 Juin 2008 à 16:41
|
dlzerocool
|
Je vous invite à tester
#!/bin/bash
#INIT SCRIPT PLAYONLINUX.COM
#Is playonlinux running?
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Load & Check dependencies
source "$PLAYONLINUX/lib/sources"
cfg_check
#Cleaning temp directory:
cd $REPERTOIRE/tmp
rm *.*
#Downloading necessary files and text setup
#wget "http://medias.jeuxonline.info/www/logos/295/32.jpg"
#wget "http://medias.jeuxonline.info/www/captures/295/0/5020-160.jpg"
##Translation:
if [ "$POL_LANG" == "fr" ]; then
INSTALL="En attente de l'installation de JediKnightAcademy..."
FINISH="JediKnightAcademy à été installé avec succes."
Q_UPDATE="Voulez vous installez maintenant le Patch 1.01 de Jedi Knight Jedi Academy -?"
DOWNLOAD="Téléchargement du patch en cours..."
else
INSTALL="Installing JediKnightAcademy..."
FINISH="JediKnightAcademy has been sucessfully installed."
Q_UPDATE="Do you want to install now the Jedi Knight Jedi Academy - Patch 1.01 ?"
DOWNLOAD="Downloading patch..."
fi
#-----------------------------------------------------------------------------------
#Init script v_3 JediKnightAcademy
#-----------------------------------------------------------------------------------
POL_SetupWindow_Init "" ""
#Game and script presentation
POL_SetupWindow_presentation "Jedi Knight : Jedi Academy" "LucasArts" "http://www.lucasarts.com" "dl.bonsai" "JediKnightAcademy"
# playonlinux_install_directory
select_prefixe "$REPERTOIRE/wineprefix/JediKnightAcademy"
POL_SetupWindow_prefixcreate
POL_SetupWindow_reboot
# JediKnightAcademy Install
POL_SetupWindow_cdrom "1"
POL_SetupWindow_check_cdrom /GameData/Setup.exe
POL_SetupWindow_wait_next_signal "$INSTALL" "JediKnightAcademy"
TEMP="$CDROM"
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:
cd $REPERTOIRE/wineprefix/JediKnightAcademy
wine $TEMP/GameData/Setup.exe
POL_SetupWindow_detect_exit
#UPDATE 1.01
POL_SetupWindow_menu "$Q_UPDATE" "JediKnightAcademy" "YES_NO" "_"
CHOOSE="$APP_ANSWER"
if [ "$CHOOSE" == "YES" ]; then
cd $REPERTOIRE/tmp
POL_SetupWindow_wait_next_signal "$DOWNLOAD" "JediKnightAcademy"
wget ftp://ftp.lucasarts.com/patches/pc/JKAcademy1_01.exe -q
POL_SetupWindow_wait_next_signal "$INSTALL" "JediKnightAcademy"
wine ./JKAcademy1_01.exe
rm ./JKAcademy1_01.exe
fi
#Shortcut
POL_SetupWindow_make_shortcut "JediKnightAcademy" "Program Files/LucasArts/Star Wars Jedi Knight Jedi Academy/" "JediAcademy.exe" "JediKnightAcademy.xpm" "Jedi Knight Academy"
POL_SetupWindow_message "$FINISH" "JediKnightAcademy"
POL_SetupWindow_Close
#-----------------------------------------------------------------------------------
#End script v_3 JediKnightAcademy
#-----------------------------------------------------------------------------------
exit
Drum & Bass - Dev - Beer and more... What else ?
|
Quentin PÂRIS |
Jeudi 26 Juin 2008 à 17:21
|
Quentin PÂRIS
|
Arf mais t'as encore cette manie de vouloir mettre plusieurs scripts dans un seul :S
|
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com