forked from xenserver/xenadmin
-
Notifications
You must be signed in to change notification settings - Fork 74
Building
Alexander Schulz edited this page Apr 11, 2018
·
12 revisions
You need:
- Source of this repository
- Source of dotnet-packages
- Visual Studio Community 2017
- Microsoft Build Tools 2013 (v12)
- Microsoft Build Tools 2015 (v14)
- Cygwin (with additional packages: unzip, patch)
You should:
- Add
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
to PATH-Variable (buildscripts need to use MSBuild.exe from this path)
1.) Open cygwin-Konsole
2.) cd dotnet-packages
(root folder)
3.) ./build.sh
4.) The libraries should now be in _build\output
1.) Copy content of dotnet-packages\_build\output\dotnet46
to <path-to-repo>\packages
2.) (optional branding) Open cygwin-Konsole, execute <path-to-repo>/branding-xcp-ng/brand-to-xcp-ng.sh
2.) Open XenAdmin.sln
3.) Build and enjoy
The information presented below may be incorrect, so handle with care 👮♂️
(Only for testing purposes) you also need NUnit libraries which can be obtained from http://www.nunit.org:
- nunit.framework.dll
- Moq.dll
You need:
- Jenkins with some plugins: Pipline,...
- Buildnode (same environment as described in Developer Build)
- Jenkins Workspace path without spaces in pathname
- Windows
- wix 3.10.4-debug (https://github.com/wixtoolset/wix3/releases/download/wix3104rtm/wix310-debug.zip), put in folder ..\scratch
- wix 3.10.4-binaries (https://github.com/wixtoolset/wix3/releases/download/wix3104rtm/wix310-binaries.zip), put in folder ..\scratch
- Brandig git repo (like https://github.com/borzel/branding)
- start configure.cmd from root folder
- add cygwin path (C:\cygwin64\bin) to windows PATH variable
Execute in cygwin terminal from workspace
BUILD_NUMBER=1 mk/xenadmin-build.sh
- clean build folder
- branding (Branding/branding.sh, mk/re-branding.sh) - sets version numbers, product name and company name from branding repo
- build
- WIX (https://de.wikipedia.org/wiki/Windows_Installer_XML)
- build/sign installers (mk/build-installers.sh)
- ...do some ressource and validators stuff...
- prepare stuff for iso