You are here > Forums > Vos créations > Script Gigatribe
| New topic - Reply |
| Author | Replies |
| LeSnake | Sunday 29 May 2011 at 22:07 - [Quote] |
| Rank: Member |
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 | Monday 30 May 2011 at 10:21 - [Quote] |
| Rank: Moderator
|
[ "$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 | Monday 30 May 2011 at 11:16 - [Quote] |
| Rank: Member |
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 | Monday 30 May 2011 at 17:26 - [Quote] |
| 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 Edited by Tinou |
| didgerifou | Wednesday 20 June 2012 at 17:48 - [Quote] |
| Rank: Member |
Quote from 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. |
508 people online



