From 691618d3352ed9329d2f4308683db119d7ceae40 Mon Sep 17 00:00:00 2001 From: Andy Schwartzmeyer Date: Tue, 24 May 2016 14:41:05 -0700 Subject: [PATCH] Return path to built package in Start-PSBuild For Windows only right now. --- build.psm1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.psm1 b/build.psm1 index d85967af9d..512ae18af2 100644 --- a/build.psm1 +++ b/build.psm1 @@ -433,8 +433,7 @@ Built upon .NET Core, it is also a C# REPL. Write-Verbose "Packaging $Source" if ($IsWindows) { - Create-MSIPackage -ProductSourcePath $Source -ProductVersion $Version -Verbose - return + return Create-MSIPackage -ProductSourcePath $Source -ProductVersion $Version -Verbose } if (-not (Get-Command "fpm" -ErrorAction SilentlyContinue)) { @@ -1009,8 +1008,9 @@ function Create-MSIPackage & $wixCandleExePath "$ProductWxsPath" "$wixFragmentPath" -out (Join-Path "$env:Temp" "\\") -arch x64 -v & $wixLightExePath -out "$productVersionWithName.msi" $wixObjProductPath $wixObjFragmentPath -ext WixUIExtension -v - Write-Verbose "You can find the MSI @ $msiLocationPath" del *.wixpdb -Force + Write-Verbose "You can find the MSI @ $msiLocationPath" + return $msiLocationPath }