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.