summaryrefslogtreecommitdiffstats
path: root/packaging/windows/package.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows/package.ps1')
-rw-r--r--packaging/windows/package.ps123
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/windows/package.ps1 b/packaging/windows/package.ps1
index 828e105f..15ee29a1 100644
--- a/packaging/windows/package.ps1
+++ b/packaging/windows/package.ps1
@@ -14,3 +14,26 @@ $env:CHERE_INVOKING = 'yes'
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