Bonjour, je n'ai pas trouvé de documentation assez complète sur la création de script, c'est pourquoi j'ai essayé d'en faire un en plagiant, mais apparemment cela ne marche pas, pourriez vous me donnez quelques indication, voici mon script :
#!/bin/bash
# Date : (2010-05-24 19-40)
# Last revision : (2010-05-24 19-40)
# Wine version used : 1.1.32
# Distribution used to test : Ubuntu 10.04
# Author : Kenairod récupéré sur le modèle du script d Age of Empires 2
# Licence : Retail
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
if [ "$POL_LANG" == "fr" ]; then
LNG_WAIT="Installation en cours..."
LNG_NEXT="Cliquez sur suivant uniquement quand l'installation sera terminée."
elif [ "$POL_LANG" == "de" ]; then
LNG_WAIT="Installiere..."
LNG_NEXT="Klicke erst auf Vor, wenn die Installation beendet wurde."
elif [ "$POL_LANG" == "pl" ]; then
LNG_WAIT="Instalacji ..."
LNG_NEXT="Kliknij dalej dopiero po zakonczeniu instalacji."
else
LNG_WAIT="Installing..."
LNG_NEXT="Kliknij na przekazanie tylko wtedy, gdy instalacja jest zakonczona."
fi
wget http://upload.wikimedia.org/wikipedia/en/f/f1/The_Battle_for_Middle-earth_II.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 "The Lord of the Rings : The Battle for Middle-earth II" "Electronic Arts Games" "http://www.ea.com/" "Kenairod" "LOTR:BFMEII"
#mkdir -p $REPERTOIRE/wineprefix/LOTR:BFMEII
select_prefix "$REPERTOIRE/wineprefix/LOTR:BFMEII"
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
GAME_PATH=$(find $CDROM -iname AUTORUN.EXE)
if [ "$GAME_PATH" == "$CDROM/AUTORUN.EXE" ]; then
POL_SetupWindow_check_cdrom "AUTORUN.EXE"
wine "$GAME_PATH"
POL_SetupWindow_message "$LNG_NEXT"
elif [ "$GAME_PATH" == "$CDROM/AutoRun.exe" ]; then
POL_SetupWindow_check_cdrom "AutoRun.exe"
wine "$GAME_PATH"
POL_SetupWindow_message "$LNG_NEXT"
elif [ "$GAME_PATH" == "$CDROM/autorun.exe" ]; then
POL_SetupWindow_check_cdrom "autorun.exe"
wine "$GAME_PATH"
POL_SetupWindow_message "$LNG_NEXT"
fi
Set_Desktop On 1024 768
POL_SetupWindow_install_wine "1.0.1"
POL_SetupWindow_make_shortcut "LOTR:BFMEII" "$PROGRAMFILES/Electronic Arts/La Bataille pour la Terre du Milieu™ II/" "lotrbfme2.exe" "LotRIcon.exe" "La Bataille pour la Terre du Milieu™ II"
Set_WineVersion_Assign "1.0.1" "The Lord of the Rings : The Battle for Middle-earth II"
POL_SetupWindow_Close
exit
Je souhaiterai également savoir quelle extension appliquer à ce fichier, et je dois également faire un téléchargement de patch, à moins qu'il ne puisse le faire en temps voulu rien qu'avec cela, mais je ne pense pas.
Voilà, j'espère que vous pourrez m'aider car jusqu'à présent je n'ai pas trouvé de meilleur moyen d'aider le monde du libre et j'en ai très envie... :(
Aangepast door Berillions
Free the world, take Linux.