Installer for Jitsi SIP Communicator

I need to create an installer for the Jitsi SIP communicator after I make changes to it. I searched the net and found a few steps as shown below:

  • SOFTWARE REQUIREMENTS

  • ENVIRONMENTAL VARIABLES:

    • Export variables containing:
    • ANT_HOME = C: \ apache- ant -1.8.3
    • JAVA_HOME = C: \ Program Files (x86) \ 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 C: \ Program Files (x86) \ Gnuwin32 \ Make \ bin
  • ADDITIONAL TASKS:

    • Edit “installers.properties” to add the path for the JRE files to be added to the installer and / or for the JRE files (.zip or folder).
    • Compile the project.
  • EXECUTE build SCRIPT:

    • Launch Cygwin Terminal
    • Go to /cygdrive/.../{dir_root Jitsi} -Execute: ant build-install-wix (to create an installer for Windows x86) ant build-install-wix-64 (to create an installer for Windows x64) ant build-install -linux (to create an installer for Linux) ant dmg (to create an installer for MacOSX, only for MacOSX

But when I issued the commands above on cygwin, I found the following error:

build-install-wix-framework: [propertyfile] Create a new property file: D: \ javaprojects \ jitsi \ release \ windows \ versionupdate.properties [mkdir] Created dir: D: \ javaprojects \ jitsi \ release \ windows \ tmp \ light [exec] Makefile: 40: * target pattern does not contain `% '. Stop.

STRICTLY FAILURE D: \ javaprojects \ jitsi \ resources \ install \ build.xml: 302: The following error occurred while executing this line: D: \ javaprojects \ jitsi \ resources \ install \ build.xml: 403: exec returned: 2

Please suggest a solution.

+4
source share
1 answer

I ran into the same problems you were talking about. I finally tried myself and built Jitsi on Windows, both 32-bit and 64-bit.

I did not use Cygwin, but just used Mingw + Msys.

Here is what I did:

  • Install Mingw + Msys in the C: / mingw / x86 folder.
  • Install ANT
  • Install BZip2 in c: / mingw / bzip2
  • Install xz to c: / mingw / xz
  • Install Wix, I installed in C: / win35. Change the location of the wix installation path in the /install/build.xml resources 6) Delete the make.exe file inside mingw / msys / 1.0 / bin and rename the mingw / bin / mingw-make.exe file to make.exe

I had to modify the Makefile a bit, here are the changes I made:

1) Remote quotes in the initialization of the target directory:

- target.dir := "$(TARGET_DIR)" - cygwin.target.dir := "$(TARGET_DIR)" + target.dir := $(TARGET_DIR) + cygwin.target.dir := $(TARGET_DIR) 

2) Changed single-line echo in multi-line:

 - echo.exe -e '#define PRODUCTNAME "$(PRODUCTNAME)"\n#define PRODUCTBUILDVERSION "$(PRODUCTBUILDVERSION)"\n#define + echo #define PRODUCTNAME "$(PRODUCTNAME)" > $(cygwin.target.dir)/config.h + echo #define PRODUCTBUILDVERSION "$(PRODUCTBUILDVERSION)" >> $(cygwin.target.dir)/config.h + echo #define TARGET_BASENAME "$(TARGET_BASENAME)" >> $(cygwin.target.dir)/config.h + echo #define TARGET_BASENAME_EXE "$(TARGET_BASENAME).exe" >> $(cygwin.target.dir)/config.h 

3) In resources / installations / installers / properties - the location where IzPack is installed is indicated, and gave a place for zip JRE files. When I used the JRE installation file, the assembly did not bind the JRE to "

 +windows.jre.zip=C:\\JavaInstallers\\jre32.zip +windows.jre64.zip=C:\\JavaInstallers\\jre64.zip 

Finally, I wrote a simple script package to build the installer:

 set PATH=C:\apps\apache-ant-1.9.1\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\wix35 set ANT_HOME=C:\apps\apache-ant-1.9.1 set JAVA_HOME=C:/Program Files (x86)\Java\jdk1.7.0_17 set BZ2_HOME=c:/mingw/bzip2_x86 set LZMA_HOME=C:/mingw/xz set MINGW_HOME=C:/mingw start /B /LOW /WAIT ant build-installation-wix 

This is for the 32-bit version.

For 64-bit, I had to build bzip2 from the source itself. This can be done by downloading the Bzip2 source and compiling it through mingw. It was a simple task. The rest of the steps are all the same.

Please try this and let me know if this worked for you.

+4
source

All Articles