[jitsi-users] Steps to create an installer for windows


#1

Hi there,

I've just write a quick-start-guide to prepare environment and create an
installer for windows x86 (working over windows 7 x64).
Please someone who check if it works properly and report it to the
community.
I hope it is useful for everybody.

1. SOFTWARE REQUIREMENTS:

-Cygwin: include lib "make, gcc & g++"
http://cygwin.com/setup.exe

-MinGW (only gcc, no g++) (use installation file .zip,
taken into account that build.xml is looking for a
sub-folder x86 y x64 into MinGW root folder)
http://sourceforge.net/projects/mingw/files/latest/download
-Install in C:\MinGW
-copy mingw-make.exe to make.exe (folder C:\MinGW\bin)

-bzip2 (v1.0.5 in this case): install in C:\MinGW\bzip2
http://gnuwin32.sourceforge.net/downlinks/bzip2.php

-xz (v5.0.3 in this case): unzip in C:\MinGW\xz
http://tukaani.org/xz/xz-5.0.3-windows.zip
-make for win32 (v3.8.1 in this case)
http://gnuwin32.sourceforge.net/downlinks/make.php

-wix35-binaries (v3.5 in this case): unzip in C:\Program Files\WiX
-Use binaries (wix35-binaries.zip), not WiX .msi installer.
http://wix.codeplex.com/releases/view/60102#DownloadId=204418

-ant (v1.8.3 in this case): unzip in C:\C:\apache-ant-1.8.3
http://ant.apache.org/bindownload.cgi

-jdk1.6 (v1.6.0_31 in this case)

2. ENVIRONMENT VARIABLES:

-Export following:

-ANT_HOME=C:\apache-ant-1.8.3

-BZ2_HOME=C:\MinGW\bzip2

-LZMA_HOME=C:\MinGW\xz

-JAVA_HOME=C:\Program Files\Java\jdk1.6.0_31
-Add to PATH :
%ANT_HOME%\bin
C:\MinGW\bin
C:\cygwin\bin
C:\MinGW\msys\1.0
C:\Program Files\WiX

3.ADDITIONAL TASKS:

-Copy folder "classes" in "resources\install"

-Edit "installers.properties" adding path for JRE files to
add into installer and/or for JRE .zip files
-Compile project

5. EXECUTE SCRIPT

-Launch *Cygwin* terminal

-Go to /cygdrive/c/{dir_root de Jitsi}

-Execute:
- ant build-installation-wix (to create an installer for windows
x86)
- ant build-installation-wix-64 (to create an installer for windows x64)
- ant build-installation-linux (to create an installer for linux)

Cheers,

ยทยทยท

--
* --DAVID--*