Packaging

Version 5 (Severine Gedzelman, 03/24/2015 04:15 pm)

1 1 Severine Gedzelman
h1. Packaging
2 1 Severine Gedzelman
3 1 Severine Gedzelman
h2. Téléchargement de IzPack
4 1 Severine Gedzelman
5 1 Severine Gedzelman
h2. Customization de l'installeur
6 1 Severine Gedzelman
7 1 Severine Gedzelman
Copier les éléments d'Izpack dans un autre dossier, ex: /Applications/IzpackHM/
8 1 Severine Gedzelman
9 1 Severine Gedzelman
Ce dossier "IzpackHM" doit contenir au minimum :
10 1 Severine Gedzelman
** le dossier doc/ (par exemple les différents fichiers hmtl et le sous-dossier img/)
11 2 Severine Gedzelman
** le dossier src/ avec la hiérarchie de dossiers correspondant au préfixe des packages java d'hypermachiavel : fr/triangle/hyperalign
12 2 Severine Gedzelman
** les dossiers lib/ et util/ pour faire fonctionner IzPack
13 2 Severine Gedzelman
** le dossier samples/ avec des extraits de corpus "Hyperprince" et "Vita" pour tester deux projets dans l'outil
14 1 Severine Gedzelman
** les fichiers :
15 2 Severine Gedzelman
*** hypermachiavel.bat
16 2 Severine Gedzelman
*** hypermachiavel.sh
17 2 Severine Gedzelman
*** install.xml
18 2 Severine Gedzelman
*** Readme.txt
19 2 Severine Gedzelman
*** License.txt
20 1 Severine Gedzelman
21 1 Severine Gedzelman
Pour compiler cette installeur avec Izpack, voici 
22 1 Severine Gedzelman
23 1 Severine Gedzelman
<code><pre>
24 1 Severine Gedzelman
./bin/compile install.xml -b /Applications/IzpackHM/
25 1 Severine Gedzelman
</pre></code>
26 1 Severine Gedzelman
27 1 Severine Gedzelman
Quand tout se passe bien :
28 1 Severine Gedzelman
<code><pre>
29 1 Severine Gedzelman
.::  IzPack - Version 4.3.5 ::.
30 1 Severine Gedzelman
31 1 Severine Gedzelman
< compiler specifications version: 1.0 >
32 1 Severine Gedzelman
33 1 Severine Gedzelman
- Copyright (c) 2001-2008 Julien Ponge
34 1 Severine Gedzelman
- Visit http://izpack.org/ for the latest releases
35 1 Severine Gedzelman
- Released under the terms of the Apache Software License version 2.0.
36 1 Severine Gedzelman
37 1 Severine Gedzelman
-> Processing  : install.xml
38 1 Severine Gedzelman
-> Output      : install.jar
39 1 Severine Gedzelman
-> Base path   : /Applications/IzpackHM/
40 1 Severine Gedzelman
-> Kind        : standard
41 1 Severine Gedzelman
-> Compression : default
42 1 Severine Gedzelman
-> Compr. level: -1
43 1 Severine Gedzelman
-> IzPack home : /Applications/IzpackHM
44 1 Severine Gedzelman
45 1 Severine Gedzelman
Adding resource: IzPack.uninstaller
46 1 Severine Gedzelman
Setting the installer information
47 1 Severine Gedzelman
Setting the GUI preferences
48 1 Severine Gedzelman
Adding langpack: eng
49 1 Severine Gedzelman
Adding resource: flag.eng
50 1 Severine Gedzelman
Adding langpack: fra
51 1 Severine Gedzelman
Adding resource: flag.fra
52 1 Severine Gedzelman
Adding langpack: ita
53 1 Severine Gedzelman
Adding resource: flag.ita
54 1 Severine Gedzelman
Adding resource: InfoPanel.info
55 1 Severine Gedzelman
Adding resource: Installer.mac
56 1 Severine Gedzelman
Adding resource: Installer.windows
57 1 Severine Gedzelman
Adding resource: LicencePanel.licence
58 1 Severine Gedzelman
Adding content of jar: file:/Applications/IzpackHM/lib/standalone-compiler.jar!/bin/panels/HelloPanel.jar
59 1 Severine Gedzelman
Adding content of jar: file:/Applications/IzpackHM/lib/standalone-compiler.jar!/bin/panels/InfoPanel.jar
60 1 Severine Gedzelman
Adding content of jar: file:/Applications/IzpackHM/lib/standalone-compiler.jar!/bin/panels/LicencePanel.jar
61 1 Severine Gedzelman
Adding content of jar: file:/Applications/IzpackHM/lib/standalone-compiler.jar!/bin/panels/TargetPanel.jar
62 1 Severine Gedzelman
Adding content of jar: file:/Applications/IzpackHM/lib/standalone-compiler.jar!/bin/panels/PacksPanel.jar
63 1 Severine Gedzelman
Adding content of jar: file:/Applications/IzpackHM/lib/standalone-compiler.jar!/bin/panels/InstallPanel.jar
64 1 Severine Gedzelman
Building installer jar: /Applications/IzpackHM/install.jar
65 1 Severine Gedzelman
[ Begin ]
66 1 Severine Gedzelman
67 1 Severine Gedzelman
Copying the skeleton installer
68 1 Severine Gedzelman
Copying 11 files into installer
69 1 Severine Gedzelman
Merging 6 jars into installer
70 1 Severine Gedzelman
Writing 3 Packs into installer
71 1 Severine Gedzelman
Writing Pack 0: Base
72 1 Severine Gedzelman
Writing Pack 1: Docs
73 1 Severine Gedzelman
Writing Pack 2: Sources
74 1 Severine Gedzelman
75 1 Severine Gedzelman
[ End ]
76 1 Severine Gedzelman
Build time: Wed Mar 04 14:34:54 CET 2015
77 1 Severine Gedzelman
</pre></code>
78 3 Severine Gedzelman
79 3 Severine Gedzelman
h2. Préparer l'installeur
80 3 Severine Gedzelman
81 5 Severine Gedzelman
Il s'agit de copier uniquement le nécessaire dans un dossier /Applications/HM 
82 5 Severine Gedzelman
83 5 Severine Gedzelman
Enlever les dossiers et fichiers suivants :
84 5 Severine Gedzelman
** install.xml
85 5 Severine Gedzelman
** bin/
86 5 Severine Gedzelman
** lib/
87 5 Severine Gedzelman
** utils/
88 5 Severine Gedzelman
89 5 Severine Gedzelman
Puis de le compresser (zip ou tar) pour le donner aux utilisateurs, à placer en téléchargement quelque part (ENS serveur de partage de fichiers).
90 3 Severine Gedzelman
91 1 Severine Gedzelman
<code><pre>
92 4 Severine Gedzelman
$ cd /Applications
93 4 Severine Gedzelman
$ tar -cvf HM_install.tar HM
94 4 Severine Gedzelman
</pre></code>