GNOME Bugzilla – Bug 596403
Cannot build windows installer automatically
Last modified: 2018-05-22 13:38:16 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
Created attachment 144054 [details] evince.wxs
Created attachment 144055 [details] License.rtf
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.
FYI, I have posted instructions on how the current Evince for Windows binaries are built on: https://live.gnome.org/Evince/Build
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
-- 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.