mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Fix Start-PSPackage for Release build on Windows
This commit is contained in:
1 parent
e89da27994
commit
3f9b1833ac
1 file changed
+7
-2
+7
-2
@@ -844,9 +844,14 @@ function Start-PSPackage {
|
|||||||
$Version = (git --git-dir="$PSScriptRoot/.git" describe) -Replace '^v'
|
$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"
|
Write-Verbose "Packaging $Source"
|
||||||
|
|
||||||
# Decide package output type
|
# Decide package output type
|
||||||
|
|||||||
Reference in new issue
Block a user