thib25 Pilote
Inscrit le: 17 Sep 2008 Age: 30 Messages: 364 Localisation: Valentigney (25)
france
|
Posté le: Jeu 27 Novembre 2008 20:21:13 Sujet du message: RSRBR et Linux |
|
Bonsoir, je pense que certains d'entre vous connaissent les distributions basées sur Linux et donc connaissent (enfin j'éspère) Wine. Je crée des scripts pour un programme français qui s'appelle Play On Linux et qui est une interface conviviale et qui permet d'installer très simplement des jeux, le site, je fai un peu de pub mais bon j'ai mis un lien sur leur site.
Je viens donc de créer un script pour installer RBR+ RSRBR08 + Updates avec ce programmes, le sujet sur le forum.
Voici le code pour ceux que ça intéresse
Code: | #!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
POL_SetupWindow_Init
POL_SetupWindow_presentation "Richard Burns Rally" "SCi Games" "http://www.richardburnsrally.com/" "thib25" "RichardBurnsRally"
#Création du préfixe de wine
POL_SetupWindow_prefixcreate "$REPERTOIRE/wineprefix/RichardBurnsRally/"
mkdir -p $REPERTOIRE/wineprefix/RichardBurnsRally
select_prefixe "$REPERTOIRE/wineprefix/RichardBurnsRally"
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
#Lancement de l'installation avec Wine 1.1.2
Set_WineVersion_Session "1.1.2"
wine $CDROM/setup.exe
POL_SetupWindow_detect_exit
#Création du lanceur et des raccourcis si l'utilisateur en veut
POL_SetupWindow_make_shortcut "RichardBurnsRally" "Program Files/SCi Games/Richard Burns Rally" "richardburnsrally.exe" "" "Richard Burns Rally"
#présentation du mod RSRBR08
POL_SetupWindow_presentation "RSRBR08" "Rallye Sim" "http://www.rallyesim.com/" "thib25" "RichardBurnsRally"
#installation de RSRBR08 et de ses updates
POL_SetupWindow_download "RSRBR08" "téléchargement de RSRBR08" "http://download.rallyesim.fr/download.php?Fichier=Installation_RSRBR_08.exe&image=Installation_RSRBR_08.exe.png"
wine "Installation_RSRBR_08.exe"
POL_SetupWindow_download "update RSRBR08 2.0.0" "téléchargement update 2.0.0" "http://download.rallyesim.fr/download.php?Fichier=Install_Update_2.0.0_RSRBR08.exe&image=Install_Update_2.0.0_RSRBR08.exe.png"
wine "Install_Update_2.0.0_RSRBR08.exe"
POL_SetupWindow_download "update RSRBR08 2.4.0" "téléchargement update 2.4.0" "http://download.rallyesim.fr/download.php?Fichier=Install_Update_2.4.0_RSRBR08.exe&image=Install_Update_2.4.0_RSRBR08.exe.png"
wine "Install_Update_2.4.0_RSRBR08.exe"
POL_Setup_Window_download "update RSRBR08 2.6.0" "téléchargement update 2.6.0" "http://download.rallyesim.fr/download.php?Fichier=Install_Update_2.6.0_RSRBR08.exe&image=Install_Update_2.6.0_RSRBR08.exe.png"
wine "Install_Update_2.6.0_RSRBR08.exe"
#création des raccourcis vers RSRBR08, RSNetwork08 et le lanceur d'AddOns
POL_SetupWindow_make_shortcut "RSRBR08" "Program Files/SCi Games/Richard Burns Rally" "RSRBR08.exe"
POL_SetupWindow_make_shortcut "RSNetwork08" "Program Files/SCi Games/Richard Burns Rally" "RSNetwork08.exe"
POL_SetupWindow_make_shortcut "LanceurAddOns RSRBR" "Program Files/SCi Games/Richard Burns Rally" "LanceurAddOns.exe"
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit |
|