ccnet / CruiseControl.NET

CruiseControl.NET is an Automated Continuous Integration server, implemented using the .NET Framework. Downloads at sourceforge. The documentation can be found at:
https://ccnet.github.io/CruiseControl.NET
Other
406 stars 225 forks source link

How to build the installers? #270

Closed dten closed 5 years ago

dten commented 5 years ago

Trying to do a new version (of a fork) but it's not clear how one would go about creating the installers. I see NSIS and nsi.template files. Looks like some things are supposed to be replaced in the template and then nsis run on it but not had any luck. Pointers appreciated :)

savornicesei commented 5 years ago

@dten You need to run the build.bat / build-all.bat and build-package.bat (.sh ones if you're running them on linux)

dten commented 5 years ago

Ah thanks, that got further, nicely populated Dist directory now. Can't see how to actually call nsis properly though. i have tried

but i'm just prompted with a white box, which is more than before :)

image

dten commented 5 years ago

Oh sorry i realise i'm supposed to run makensis.exe but i get the following end of log


...
SetCompressor: lzma
!define: "MUI_ABORTWARNING"=""
!define: "MUI_ICON"="project\CCTrayLib\ResourceIcons\Green.ico"
!define: "MUI_UNICON"="project\CCTrayLib\ResourceIcons\Green.ico"
!define: "MUI_HEADERIMAGE"=""
!define: "MUI_HEADERIMAGE_BITMAP"="install\install_logo.bmp"
!define: "MUI_HEADERIMAGE_RIGHT"=""
!define: "MUI_COMPONENTSPAGE_SMALLDESC"=""
!insertmacro: MUI_PAGE_WELCOME
Error: File doesn't exist or is an invalid icon file
Error in macro MUI_INTERFACE on macroline 61
Error in macro MUI_PAGE_INIT on macroline 3
Error in macro MUI_PAGE_WELCOME on macroline 5
Error in script "install\ccnet.nsi" on line 34 -- aborting creation process```
dten commented 5 years ago

tried updating nsis and get a clearer error.

...
SetCompressor: lzma
!define: "MUI_ABORTWARNING"=""
!define: "MUI_ICON"="project\CCTrayLib\ResourceIcons\Green.ico"
!define: "MUI_UNICON"="project\CCTrayLib\ResourceIcons\Green.ico"
!define: "MUI_HEADERIMAGE"=""
!define: "MUI_HEADERIMAGE_BITMAP"="install\install_logo.bmp"
!define: "MUI_HEADERIMAGE_RIGHT"=""
!define: "MUI_COMPONENTSPAGE_SMALLDESC"=""
!insertmacro: MUI_PAGE_WELCOME
Error while loading icon from "project\CCTrayLib\ResourceIcons\Green.ico": can't open file
Error in macro MUI_INTERFACE on macroline 64
Error in macro MUI_PAGE_INIT on macroline 2
Error in macro MUI_PAGE_WELCOME on macroline 5
Error in script "..\..\install\cctray.nsi" on line 35 -- aborting creation process

which lead me to beleive it wants some relative path.

moved cctray.nsi to the root directory and it worked 👍

savornicesei commented 5 years ago

@dten I'm glad that you've sorted it out.

The build-package.bat should have created the installer. See target 'packageCCTray' in /Tools/ccnet-packaging.inc.build that's included in the main ccnet.build script.