EnvironmentSetup/0sugar/fr

From Wiki.ooo4kids.org

Jump to: navigation, search

Retourner à Configuration de l'environnement de développement


DRF Back alt.png [[Main_Page/{{{2}}}|OOo4Kids]]

Mise en place du système 0Install Sugar


Le but de ce Guide est de décrire comment fabriquer les binaires d'OOo4Kids en utilisant le fil du système 0install (prononcer "zéro install").

Son but n'est pas de créer le feed 0install directement, mais plutôt d'utiliser 0sugar, outil de haut niveau qui permet de créer des fichiers de type spec (comparables aux fichiers spec pour archives .rpm) et génère les fichiers 0install à partir de ces fichiers spec.

Configuration de l'environnement

echo 'PATH=~/.local/bin:$PATH' >> ~/.bashrc
0alias 0sugar http://services.sugarlabs.org/0sugar
0alias 0export http://services.sugarlabs.org/0export

Toutes les commandes 0sugar doivent être passées depuis un répertoire des sources d'OOo4Kids (pas besoin d'être forcément à la racine).

TAG TODO.png : terminer la traduction


While working, 0sugar command will create local repository in .0sugar sub-directory. This directory could be removed at any time if you don't need results since last uploading to the server.

One of .0sugar sub-directories is remote directory that contains files that should go to the server. All files related to this project are placed to separate directory on the server and remote directory is a mirror (in most cases, not full). To upload/download files between remote directory and server, 0sugar uses rsync command. Particular rsync destination path could be passed to 0sugar by --rsync-path argument. Default value is sunjammer.sugarlabs.org:/upload/services. So, OOo4Kids 0install files are hosted on Sugar Labs server. To get access to sunjammer sever, please make a request or use your own rsync path.

If you all time use 0sugar arguments like --rsync-path or --key, define ZSUGAR_OPTIONS environment variable with all arguments you are using.

Build

Scenario to build tarballs is described in 0sugar/service.info file (see 0sugar specification).

To build OOo4Kids just run:

0sugar build -i

where -i will reuse source directory without need to create sources tarball (it is useless to create sources tarball for huge projects like OO). Build will happen in .0sugar/build.<arch> directory and final tarballs will be placed to .0sugar/remote.

If you already have any-arch tarballs built in .0sugar/remote directory and need only to create/rebuild binaries, pass -B argument:

0sugar build -iB

Upload files

At any time you can upload .0sugar/remote content to the server:

0sugar commit

Pass -v argument to get rsync verbose output.

Make an installer

In most cases OOo4Kids users can follow regular 0install workflow for OOo4Kids feed. But if user doesn't know what 0install is, installer could be useful.

Followed command creates lightweight installer (-n argument) which contains only bundled 0install distribution and will create menu items and start OOo4Kids downloading on launch.

0export -j http://services.sugarlabs.org/zeroinstall-injector -n http://services.sugarlabs.org/ooo4kids ooo4kids-install.sh
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox