First pass at building Windows MSI for the dotnet CLI repo.
- Use the heat tool to harvest the stage2 dir and create install-files.wxs - dotnet.wxs contains the XML code which is constant across builds for an MSI. - Use Candle and Light to generate the MSI from install-files.wxs and dotnet.wxs. Default Install Location - %ProgramFiles%/dotnet. Adds <InstallRoot>\bin %PATH% Creates %DOTNET_HOME% pointing to <InstallRoot>
This commit is contained in:
parent
92857c7298
commit
fb61e69a79
6 changed files with 210 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
|||
param(
|
||||
[string]$Configuration="Debug")
|
||||
|
||||
. "$PSScriptRoot\_common.ps1"
|
||||
|
||||
$ErrorActionPreference="Stop"
|
||||
|
||||
# Use a repo-local install directory (but not the artifacts directory because that gets cleaned a lot
|
||||
|
@ -31,3 +33,6 @@ Write-Host -ForegroundColor Green "*** Building dotnet tools version $($env:DOTN
|
|||
|
||||
Write-Host -ForegroundColor Green "*** Packaging dotnet ***"
|
||||
& "$PSScriptRoot\package\package.ps1"
|
||||
|
||||
Write-Host -ForegroundColor Green "*** Generating dotnet MSI ***"
|
||||
& "$RepoRoot\packaging\windows\generatemsi.ps1" $Stage2Dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue