After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596403 - Cannot build windows installer automatically
Cannot build windows installer automatically
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: win32
2.28.x
Other Windows
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 597231
 
 
Reported: 2009-09-26 07:02 UTC by Hib Eris
Modified: 2018-05-22 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evince.msi.wxs (1.16 KB, application/octet-stream)
2009-09-26 07:02 UTC, Hib Eris
Details
evince.wxs (46.50 KB, application/octet-stream)
2009-09-26 07:03 UTC, Hib Eris
Details
License.rtf (676 bytes, application/rtf)
2009-09-26 07:04 UTC, Hib Eris
Details

Description Hib Eris 2009-09-26 07:02:51 UTC
Created attachment 144053 [details]
evince.msi.wxs

The windows installer at the moment is build manually on WindowsXP.
This should be automated and integrated into evince' Makefiles.

Preferably, the installer should be build on Linux directly after cross
compiling.


For now, I will dump the sources for the installer here in this bug.


Some commands to create the installer:

mono "C:\Program Files\Windows Installer XML v3\bin\candle.exe"
-dwixdistdir=wixdistdir evince.wxs 

mono "C:\Program Files\Windows Installer XML v3\bin\candle.exe"
-dwixdistdir=wixdistdir evince.msi.wxs 

mono "C:\Program Files\Windows Installer XML v3\bin\light.exe" -o
evince-2.28.0.msi -ext "H:\newinst\WixUIExtension.dll"
-dWixUILicenseRtf="H:\newinst\License.rtf" -sval evince.msi.wixobj
evince.wixobj


To generate the orignal evince.wxs, I used this. After that I made some minor
manual changes to it: 

mono "C:\Program Files\Windows Installer XML v3\bin\heat.exe" dir wixdistdir
-gg -sfrag -sreg -cg evince -dr evince -srd -var var.wixdistdir -o evince.wxs
Comment 1 Hib Eris 2009-09-26 07:03:54 UTC
Created attachment 144054 [details]
evince.wxs
Comment 2 Hib Eris 2009-09-26 07:04:36 UTC
Created attachment 144055 [details]
License.rtf
Comment 3 Hib Eris 2009-12-18 10:58:23 UTC
I have successfully build the windows installer on Linux.

I have done this on the openSUSE build service (http://build.opensuse.org) (free registration required), using the cross compile build chain provided by the windows:mingw:win32 project (https://build.opensuse.org/project/show?project=windows%3Amingw%3Awin32). I have extended this build chain by adding support to build .msi files in my home project (https://build.opensuse.org/project/show?project=home%3Ahiberis).

My latest build of evince (2.29.3 at the moment) can be found in 
https://build.opensuse.org/project/show?project=home%3Ahiberis%3AUNSTABLE
There you can also find the latest *.wxs files and evince customizations to build the evince.msi.
Comment 4 Hib Eris 2011-06-13 12:45:13 UTC
FYI, I have posted instructions on how the current Evince for Windows binaries are built on:

https://live.gnome.org/Evince/Build
Comment 5 Germán Poo-Caamaño 2013-06-14 23:59:27 UTC
I could not with the instructions.    

I am not sure whether to update the wiki or not.  osc ask for permission to build on GNOME:...  So, I have to make a copy in my playground area.  But that did not work either because some packages changed names and I did not have wix, etc.  What worked for me was to make a copy of windows:mingw:win32:evince-mingw32.

Anyway, may be we could explore using msitools instead, which read wix-xml files. See https://git.gnome.org/browse/msitools/tree/README
Comment 6 GNOME Infrastructure Team 2018-05-22 13:38:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/104.