Scripts
Script for Starcraft
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Starcraft" "Blizzard" "http://www.blizzard.com" "Christhaal" "Starcraft"
CDROM=$(champ "Quel est le point de montage de votre lecteur CDROM? (Défault : /media/cdrom/)" "/media/cdrom");
if [ "$?" = 1 ]
then
exit
fi
if [ "$CDROM" = "" ]
then
CDROM="/media/cdrom"
fi
message "Veuillez monter votre lecteur CDROM, puis cliquez sur valider pour commencer l'installation."
if [ -e "$CDROM/setup.exe" ]
then
message "Votre CDROM a bien été detecté.\nAppuyez sur une touche pour commencer l'installation !"
else
erreur "Erreur : le CDROM n'a pas été detecté !"
exit 0
fi
mkdir -p $REPERTOIRE/wineprefix/Starcraft
cd $REPERTOIRE/wineprefix/Starcraft
select_prefixe "$(pwd)"
creer_prefixe
cd drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM ./d:
cd $CDROM
fonts_to_prefixe
wine d:\install.exe
ln -s ./fonts ./wineprefix/Starcraft/drive_c/windows/fonts
chmod 777 $HOME/.PlayOnLinux/wineprefix/Starcraft/drive_c/Program Files/Starcraft/ -R
simuler_reboot
creer_lanceur "Starcraft" "Program Files/Starcraft" "Starcraft.exe"
message "Installation terminée"
exit