sv ru es en fr

Applications

Choose a category

Star Wars : Jedi Knight : Jedi Academy

Informations

This script is signed by PlayOnLinux.

Source code

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"


#Presentation

cd $REPERTOIRE/tmp
rm *.jpg
wget $SITE/setups/jka/left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"

TITLE="Jedi Knight : Jedi Academy"
POL_SetupWindow_presentation "Jedi Knight : Jedi Academy" "LucasArts" "http://www.lucasarts.com" "Tinou" "JediKnightAcademy" 1 8

POL_SetupWindow_message "PlayOnLinux will temporarily copy the two cdrom in you home directory.\nPlease ensure you have enought disk space\n\nPlease mount the first CD-ROM" "$TITLE"
POL_SetupWindow_cdrom 
POL_SetupWindow_check_cdrom "GameData/Setup.exe"
ORIGINAL_CDROM="$CDROM"
TEMP="$REPERTOIRE/tmp/jka"
chmod -R 777 $TEMP 
rm  -R$TEMP
mkdir -p $REPERTOIRE/wineprefix/JediKnightAcademy
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/JediKnightAcademy

select_prefixe "$(pwd)"
POL_SetupWindow_prefixcreate
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $REPERTOIRE/tmp/jka d:

cd $TEMP
POL_SetupWindow_wait_next_signal "PlayOnLinux is copying the first CD-ROM" "$TITLE"
cp -r $CDROM//* ./
chmod -R 777 $TEMP/

POL_SetupWindow_detect_exit
POL_SetupWindow_message "Please insert the second CD-ROM" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "GameData/data3.cab"

POL_SetupWindow_wait_next_signal "PlayOnLinux is copying the second CD-ROM" "$TITLE"
cd $TEMP
cp -r $CDROM/* ./ 
chmod -R 777 $TEMP 
POL_SetupWindow_detect_exit

POL_SetupWindow_wait_next_signal "PlayOnLinux is installing $TITLE ..." "$TITLE"
wine $TEMP/GameData/Setup.exe

POL_SetupWindow_detect_exit
POL_SetupWindow_reboot

POL_SetupWindow_wait_next_signal "Clealing temp directory" "$TITLE"
chmod -R 777 $TEMP 
rm -r $TEMP
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $ORIGINAL_CDROM ./d:
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "JediKnightAcademy" "Program Files/LucasArts/Star Wars Jedi Knight Jedi Academy/" "JediAcademy.exe" "JediKnightAcademy.xpm" "Jedi Knight Academy"

POL_SetupWindow_message "Installation finished\n\nYou need to patch the game to run it" "$TITLE"
POL_SetupWindow_Close
exit

Signature

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

iEYEABECAAYFAk1cJDoACgkQ5TH6yaoTyker7QCghZXDUyz3bvRdNNfTybThJUBD
m6gAoKzz+t79GT/T5mcQLg7JWKhQiA96
=TAhB
-----END PGP SIGNATURE-----
	Date : 16 February 2011 20:23:38
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