Vous êtes ici > Les forums > Vos créations > Script Gigatribe
| Nouveau sujet - Répondre |
| Auteur | Posts |
| LeSnake | Dimanche 29 Mai 2011 à 22:07 - [Citer] |
| Rank: Membre |
Bonjour,
Je commence à réaliser un script pour faire fonctionner gigatribe grâce à wine+Pol. L'installation se passe bien tant (que tout se passe bien). J'ai pu créer une icône. J'ai lancé le logiciel, l'ai configuré en fixant un port, et j'ai pu récupérer un fichier sur l'ordi d'un pote. Il reste à tester l'upload, et éventuellement upnp et easyconnect. J'aurai besoin d'aide pour la création de la clé à la fin du fichier : comment fait-on ? A la suite, le code du script actuel, fortement inspiré de celui de Starcraft II LeSnake PS : l'aperçu ne marche pas ?! #!/bin/bash # Date : 2011-05-29 19:35:23 # Last revision : 2011-05-29 19:35:37 # Wine version used : 1.3.20 # Distribution used to test : Ubuntu 11.04 # Author : LeSnake # Licence : Retail # v 0.0.1 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gigatribe" PREFIX="Gigatribe_Prefix" WORKING_WINE_VERSION="1.3.20" if [ "$POL_LANG" == "fr" ]; then LNG_SETUPBINPATH="Veuillez choisir le fichier d'installation de Gigatribe" LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation sera\nterminée sous peine de devoir recommencer l'installation." else LNG_SETUPBINPATH="Please select the installation file for gigatribe" LNG_WAIT_END="Click on \"Next\" ONLY when the installation is finished\nor you will have to redo the installation." fi #starting the script cd $REPERTOIRE/tmp rm *.jpg POL_GetSetupImages "http://www.gigatribe.com/images/fr/logo-gigatribe.png" "http://www.gigatribe.com/images/boxshot.png" "$TITLE" [ "$PLAYONMAC" == "" ] || POL_SetupWindow_Init [ "$PLAYONMAC" == "" ] && POL_SetupWindow_InitWithImages POL_SetupWindow_presentation "$TITLE" "Gigatribe" "http://www.gigatribe.com" "LeSnake" "$PREFIX" select_prefix "$REPERTOIRE/wineprefix/$PREFIX" #downloading specific Wine if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then POL_Call POL_Install_wine64b else POL_SetupWindow_install_wine "$WORKING_WINE_VERSION" fi Use_WineVersion "$WORKING_WINE_VERSION" #fetching PROGRAMFILES environmental variable PROGRAMFILES="Program Files" POL_LoadVar_PROGRAMFILES POL_SetupWindow_browse "$LNG_SETUPBINPATH" "$TITLE" SETUP_EXE="$APP_ANSWER" wine start /unix "$SETUP_EXE" POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE" #cleaning temp if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then rm -rf "$WINEPREFIX/drive_c/windows/temp/*" chmod -R 777 "$REPERTOIRE/tmp/" rm -rf "$REPERTOIRE/tmp/*" fi #making shortcut POL_SetupWindow_auto_shortcut "$PREFIX" "GigaTribe.exe" "$TITLE" "$TITLE.png" "" Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE" POL_SetupWindow_Close exit |
| Tutul | Lundi 30 Mai 2011 à 10:21 - [Citer] |
| Rank: Modérateur
|
[ "$PLAYONMAC" == "" ] || POL_SetupWindow_Init [ "$PLAYONMAC" == "" ] && POL_SetupWindow_InitWithImages Tu peux remplacer par POL_SetupWindow_InitWithImages #fetching PROGRAMFILES environmental variable PROGRAMFILES="Program Files" POL_LoadVar_PROGRAMFILES n'est plus vraiment obligatoire SAUF si tu as de très bonne raisons de le mettre. Sinon ça me semble bon moi je dis : le plus fort entre l’hippopotame et l’éléphant, c’est encore le rhinocéros ! |
| LeSnake | Lundi 30 Mai 2011 à 11:16 - [Citer] |
| Rank: Membre |
Salut,
Merci pour ces conseils, j'ai apporté ces modifications. Aucune raison particulière à ces syntaxes autre que celle que je suis parti du script de SCII. Et pour la clé gpg ? LeSnake #!/bin/bash # Date : 2011-05-29 19:35:23 # Last revision : 2011-05-29 19:35:37 # Wine version used : 1.3.20 # Distribution used to test : Ubuntu 11.04 64b # Author : LeSnake # Licence : Retail # v 0.0.2 [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gigatribe" PREFIX="Gigatribe_Prefix" WORKING_WINE_VERSION="1.3.20" if [ "$POL_LANG" == "fr" ]; then LNG_SETUPBINPATH="Veuillez choisir le fichier d'installation de Gigatribe" LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation sera\nterminée sous peine de devoir recommencer l'installation." else LNG_SETUPBINPATH="Please select the installation file for gigatribe" LNG_WAIT_END="Click on \"Next\" ONLY when the installation is finished\nor you will have to redo the installation." fi #starting the script cd $REPERTOIRE/tmp rm *.jpg POL_GetSetupImages "http://www.gigatribe.com/images/fr/logo-gigatribe.png" "http://www.gigatribe.com/images/boxshot.png" "$TITLE" POL_SetupWindow_InitWithImages POL_SetupWindow_presentation "$TITLE" "Gigatribe" "http://www.gigatribe.com" "LeSnake" "$PREFIX" select_prefix "$REPERTOIRE/wineprefix/$PREFIX" #downloading specific Wine if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then POL_Call POL_Install_wine64b else POL_SetupWindow_install_wine "$WORKING_WINE_VERSION" fi Use_WineVersion "$WORKING_WINE_VERSION" POL_SetupWindow_browse "$LNG_SETUPBINPATH" "$TITLE" SETUP_EXE="$APP_ANSWER" wine start /unix "$SETUP_EXE" POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE" #cleaning temp if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then rm -rf "$WINEPREFIX/drive_c/windows/temp/*" chmod -R 777 "$REPERTOIRE/tmp/" rm -rf "$REPERTOIRE/tmp/*" fi #making shortcut POL_SetupWindow_auto_shortcut "$PREFIX" "GigaTribe.exe" "$TITLE" "$TITLE.png" "" Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE" POL_SetupWindow_Close exit |
| Quentin PÂRIS | Lundi 30 Mai 2011 à 17:26 - [Citer] |
| Rank: Admin
|
La clé, tu l'obtiens en faisant valider ton script par l'équipe.
Si tu ne veux pas l'envoyer en validation, tu peux toujours nous envoyer ton script sous forme de fichier par mail, on te fera une signature GPG Edité par Tinou |
| didgerifou | Mercredi 20 Juin 2012 à 17:48 - [Citer] |
| Rank: Membre |
Citation de Tinou : La clé, tu l'obtiens en faisant valider ton script par l'équipe. Salut, Je voudrais savoir s'il y a des news sur ce script. A t-il évolué ? Fonctionne t il sur une version récente de gigatribe ? Merci d'avance. Bonne journée. |
229 personnes en ligne



