Fix Start-PSPackage for Release build on Windows

This commit is contained in:
Andrew Schwartzmeyer
2016-08-11 17:38:45 -07:00
parent e89da27994
commit 3f9b1833ac
+7 -2
View File
@@ -844,9 +844,14 @@ function Start-PSPackage {
$Version = (git --git-dir="$PSScriptRoot/.git" describe) -Replace '^v'
}
Write-Warning "Please ensure you have previously run Start-PSBuild -Clean -CrossGen!"
if ($IsWindows) {
Write-Warning "Please ensure you have previously run Start-PSBuild -Clean -CrossGen -Configuration Release!"
$Source = Split-Path -Parent (Get-PSOutput -Options (New-PSOptions -Publish -Configuration Release))
} else {
Write-Warning "Please ensure you have previously run Start-PSBuild -Clean -CrossGen!"
$Source = Split-Path -Parent (Get-PSOutput -Options (New-PSOptions -Publish))
}
$Source = Split-Path -Parent (Get-PSOutput -Options (New-PSOptions -Publish))
Write-Verbose "Packaging $Source"
# Decide package output type