Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Crayon Physics

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


cfg_check

#Presentation
POL_SetupWindow_Init
POL_SetupWindow_presentation "Crayon Physics" "Kloonigames" "http://www.kloonigames.com" "Twinoatl" "CrayonPhysics" 1 4

mkdir -p $REPERTOIRE/wineprefix/CrayonPhysics

TEMP="$HOME/.PlayOnLinux/tmp/crayonPhysics"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/CrayonPhysics

select_prefixe "$(pwd)"
POL_SetupWindow_prefixcreate
Set_SoundDriver esd
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:

cd $TEMP
POL_SetupWindow_download "Téléchargement du jeu..." "Installation" "http://www.kloonigames.com/download/crayon.zip" ""
POL_SetupWindow_download "Téléchargement de MSVCP60.dll" "Installation" "http://www.dllbank.com/zip/m/msvcp60.dll.zip" ""
mv download.php crayon.zip # compatibilité avec le script de zoloom

mkdir -p $WINEPREFIX/drive_c/
cd $WINEPREFIX/drive_c/

unzip $TEMP/crayon.zip

cd $WINEPREFIX/drive_c/crayon
unzip $TEMP/msvcp60.dll.zip

chmod 777 $TEMP -R
# rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:

POL_SetupWindow_make_shortcut "CrayonPhysics" "crayon" "crayon.exe" "crayon.png" "Crayon Physics"
POL_SetupWindow_message "Crayon Physics has been installed successfully" "Installation finished"
POL_SetupWindow_Close

exit