Construire un paquet AllInOne Windows depuis SVN

Vous pouvez poser ici des questions en français.

Construire un paquet AllInOne Windows depuis SVN

Post by Sébastien » Thu Nov 27, 2008 11:39 am

Bonjour,
nous aimerions utiliser Advene pour créer des verités terrains. Dans les dernières versions sous SVN, il y l'option permettant de rezommer dans la timeline (nos fichiers font tjrs 24H :)

J'aimerais le proposer sous Windows pour nos petites mains qui vont annoter. Y'a t-il un script dispo et que je n'aurais pas vu pour créer un installer Windows AllInOne depuis un version récente Svn ?

D'avance merci,
Sébastien.

PS: Advene était à la fête de la science à Rennes pour présenter nos résultats sur la structuration automatique de flux TV ... tout c'est très bien passé :)
Sébastien

Re: Construire un paquet AllInOne Windows depuis SVN

Post by oaubert » Thu Nov 27, 2008 6:36 pm

Bonjour

Un installeur de la version de développement est disponible dans http://www.advene.org/download/win32/20081127/

Voici toutefois un rapide copier/coller de notre documentation pour la création de l'installeur. Il faudrait qu'on migre tout ça sur le wiki public, mais manque de temps...

Olivier

Liens:
http://starship.python.net/crew/theller/py2exe/
http://www.innosetup.com/

How to generate the Advene windows installer ?

There are 2 phases : generation of the executable (thanks to py2exe) then generation of the installer (thanks to InnoSetup?).

Py2Exe et InnoSetup? installation

To create a Win32 standalone executable, we use py2exe, with the standard setup file setup.py.

To create the Windows installer, we use InnoSetup and/or its GUI ISTool with the configuration file advene.iss.

Install all these tools before trying to generate the installer.

Generation of the executable

In an advene development-tree, run the command

python setup.py py2exe

It should create a dist directory, with a bunch of files and directory, and especially the advene.exe executable, and a library.zip.

Installer configuration file update

You should update 2 types of data in the installer configuration file (advene.iss) : the paths to the Gtk libraries, and the version numbers. For this, choose the Sections/Script representation in ISTools, which presents the whole generated script, and update the text.

The version numbers are present 4 times in the configuration file.

The path to Gtk is present only in the Files section. It defaults to \devel\gtk, and should be replaced to match the configuration of the compiling computer.

Moreover, some dlls need to be included manualy in the script (libpng12.dll,libpangoft2-1.0-0.dll,libtiff3.dll,jpeg62.dll). For exemple, that's how the begining of our script looks like for our win32 build :

[Files]
Source: dist\library.zip; DestDir: {app}
Source: dist\*.dll; DestDir: {app}
Source: dist\*.pyd; DestDir: {app}
Source: dist\advene.exe; DestDir: {app}
Source: lib\libsnapshot_plugin.dll; DestDir: {app}\lib
Source: dist\w9xpopen.exe; DestDir: {app}
Source: dist\share\*; DestDir: {app}\share; Flags: recursesubdirs
Source: dist\doc\*; DestDir: {app}\doc; Flags: recursesubdirs
Source: dist\locale\*; DestDir: {app}\locale; Flags: recursesubdirs
Source: share\pixmaps\dvd.ico; DestDir: {app}; DestName: advene.ico
Source: c:\gtk\etc\*; DestDir: {app}\etc; Flags: recursesubdirs
Source: c:\gtk\lib\gtk-2.0\*; DestDir: {app}\lib\gtk-2.0; Flags: recursesubdirs
Source: c:\gtk\share\locale\fr\*; DestDir: {app}\lib\locale\fr; Flags: recursesubdirs
Source: c:\gtk\lib\pango\*; DestDir: {app}\lib\pango; Flags: recursesubdirs
Source: c:\gtk\share\themes\*; DestDir: {app}\share\themes; Flags: recursesubdirs
Source: c:\gtk\bin\libpng12.dll; DestDir: {app}
Source: c:\gtk\bin\libpangoft2-1.0-0.dll; DestDir: {app}
Source: c:\gtk\bin\libtiff3.dll; DestDir: {app}
Source: c:\gtk\bin\jpeg62.dll; DestDir?: {app}

Generation of the installer

Once the executable is generated, use InnoSetup?, or the ISTool GUI, to generate the installer, with the advene.iss configuration file. The compile button should be the 3rd one from the right in the toolbar.

The installer is generated in the Output/ directory.
oaubert
Site Admin
Posts: 88
Joined: Mon Jan 07, 2008 4:02 pm

Re: Construire un paquet AllInOne Windows depuis SVN

Post by Sébastien » Thu Nov 27, 2008 7:47 pm

Super merci, je vais tester ca demain et je complèterais sur le wiki si ca marche.
Sébastien


Return to Questions en francais