mirror of
https://github.com/netdata/netdata.git
synced 2024-11-24 00:19:42 +00:00
6cb5e58f60
* Update CI to generate MSI installer for Windows using WiX. * Fix missing option for WiX install. * Copy icon file alongside WiX sources. * Run WiX in the build directory instead of CWD.
40 lines
719 B
PowerShell
40 lines
719 B
PowerShell
# Package the build
|
|
|
|
#Requires -Version 4.0
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
. "$PSScriptRoot\functions.ps1"
|
|
|
|
$msysbash = Get-MSYS2Bash "$msysprefix"
|
|
$env:CHERE_INVOKING = 'yes'
|
|
|
|
& $msysbash -l "$PSScriptRoot\package-windows.sh"
|
|
|
|
if ($LastExitcode -ne 0) {
|
|
exit 1
|
|
}
|
|
|
|
if ($null -eq $env:BUILD_DIR) {
|
|
$builddir = & $msysbash -l "$PSScriptRoot\get-win-build-path.sh"
|
|
|
|
if ($LastExitcode -ne 0) {
|
|
exit 1
|
|
}
|
|
} else {
|
|
$builddir = $env:BUILD_DIR
|
|
}
|
|
|
|
Push-Location "$builddir"
|
|
|
|
$wixarch = "x64"
|
|
|
|
wix build -arch $wixarch -ext WixToolset.Util.wixext -ext WixToolset.UI.wixext -out "$PSScriptRoot\netdata-$wixarch.msi" netdata.wxs
|
|
|
|
if ($LastExitcode -ne 0) {
|
|
Pop-Location
|
|
exit 1
|
|
}
|
|
|
|
Pop-Location
|