Installer for Jitsi SIP Communicator

て烟熏妆下的殇ゞ 提交于 2019-12-01 18:12:47

I faced the same issues as you mentioned. I finally tried myself, and built Jitsi in Windows, both 32 bit and 64 bit versions.

I didn't use Cygwin, but just used Mingw+Msys.

Here is what I did:

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

I had to change the Makefiles a little, here are the changes I made:

1) Removed quotes in Target directory initialization:

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

2) Changed single line echo into multiline:

-       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 the resources/install/installers/properties - Specified the location where IzPack is installed, and gave location for zip files of JRE. When I used the setup file of JRE, the build didn't bundle the JRE along"

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

Finally, I wrote a simple batch script 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 though, I had to build bzip2 from source myself. That can be done by downloading Bzip2 source and compile it through mingw. Was an easy task. Rest of the steps are all the same.

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!