Forums
[Script] Baldur's Gate 1 - extension Tales of the sword coast
Auteur |
Réponses |
Guest |
Vendredi 8 Octobre 2010 à 19:42
|
Guest
|
#!/bin/bash
# Last revision : (2010-10-01)
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
wget http://upload.wikimedia.org/wikipedia/en/thumb/d/d0/Baldur%27s_Gate_box.PNG/256px-Baldur%27s_Gate_box.PNG --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_presentation "Baldur's Gate 1 extension" "Black Isle" "N/A" "Zoloom" "BaldursGate1"
select_prefix "$REPERTOIRE/wineprefix/BaldursGate1"
POL_SetupWindow_prefixcreate
#fetching PROGRAMFILES environmental variable
#PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
#PROGRAMFILES=${PROGRAMFILES:3}
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
cd $CDROM
POL_SetupWindow_wait_next_signal "Installation in progress..." "Baldur's Gate 1 Extension"
wine $CDROM/setup.exe
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut "BaldursGate1" "$PROGRAMFILES/Black Isle/Baldur's Gate" "Baldur.exe" "" "Baldur's Gate"
#POL_SetupWindow_reboot
POL_SetupWindow_Close
exit
EDIT BlondVador : Je t'ai ajouté les balises [code ] afin d'améliorer la lisibilité. Edité par BlondVador
|
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