• [^] # Re: Application portable ?

    Posté par (site web personnel) . En réponse à la dépêche Dr. Geo 13.04. Évalué à 6.

    PC/Mac/GNU-Linux
    Download the universal PC/MAC/GNU-Linux application and uncompress, it is ready to use:
    GNU-Linux: run (execute) the script drgeo.sh
    Windows: run the drgeo.exe program
    Mac OSX: drag and drop the drgeo.app in the Application directory
    You can copy the whole uncompressed Dr. Geo directory in a usb stick or disk and use it from there. The Dr. Geo universal bundle is self-sufficient.

    Le fichier "universel" à télécharger est une archive .zip

    Et pour ce qui m'intéresse, personnellement, voici le script shell que l'on est invité à exécuter :

    #!/bin/sh
    # path
    ROOT=`readlink -f $(dirname 0ドル)`
    APP=`dirname "0ドル"`
    APP=`cd "$APP";pwd`
    VM="$APP/Contents/Linux/"
    RESOURCES="$APP/Contents/Resources"
    image="$RESOURCES/drgeo.image"
    # icon (note: gvfs-set-attribute is found in gvfs-bin on Ubuntu
    # systems and it seems to require an absolute filename)
    gvfs-set-attribute \
     "0ドル" \
     "metadata::custom-icon" \
     "file://$RESOURCES/drgeo.png" \
     2> /dev/null
    # execute
    exec "$VM/pharo" \
     -plugins "$VM" \
     -encoding utf-8 \
     -vm-display-X11 \
     "$image"
    
    

    Que se passe-t-il au juste avec la variable $APP ?

    Les librairies, dépendances les plus directes et importantes se retrouvent là (dans l'archive) également, ou lié en statique…

    Je m'attendrais personnellement à ce que cela fonctionne sur certaines distributions, apparemment Ubuntu, mais pas forcément sur toutes… à essayer…

    L'idéal pour les systèmes GNU* serait un packaging adéquat avec tout les avantages que cela procure et que nous apprécions tellement :)

    *: /Linux ou autre, tel que /kFreeBSD… Android également basé sur Linux n'étant pas GNU…