Make LTS package always not a preview (#11895)
This commit is contained in:
parent
349783fe36
commit
d4536cfb77
|
@ -205,9 +205,16 @@ function Test-IsPreview
|
|||
param(
|
||||
[parameter(Mandatory)]
|
||||
[string]
|
||||
$Version
|
||||
$Version,
|
||||
|
||||
[switch]$IsLTS
|
||||
)
|
||||
|
||||
if ($IsLTS.IsPresent) {
|
||||
## If we are building a LTS package, then never consider it preview.
|
||||
return $false
|
||||
}
|
||||
|
||||
return $Version -like '*-*'
|
||||
}
|
||||
|
||||
|
|
|
@ -775,7 +775,7 @@ function New-UnixPackage {
|
|||
}
|
||||
|
||||
# Determine if the version is a preview version
|
||||
$IsPreview = Test-IsPreview -Version $Version
|
||||
$IsPreview = Test-IsPreview -Version $Version -IsLTS:$LTS
|
||||
|
||||
# Preview versions have preview in the name
|
||||
$Name = if($LTS) {
|
||||
|
@ -1440,7 +1440,7 @@ function New-MacOSLauncher
|
|||
[switch]$LTS
|
||||
)
|
||||
|
||||
$IsPreview = Test-IsPreview -Version $Version
|
||||
$IsPreview = Test-IsPreview -Version $Version -IsLTS:$LTS
|
||||
$packageId = Get-MacOSPackageId -IsPreview:$IsPreview
|
||||
|
||||
# Define folder for launcher application.
|
||||
|
|
Loading…
Reference in a new issue