mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update building of MSIX for RC to use 100 range revision (#11526)
This commit is contained in:
1 parent
b19e2b9d4c
commit
f61c0d4444
1 file changed
+8
-2
@@ -2881,7 +2881,7 @@ function New-MSIXPackage
|
||||
|
||||
$displayName = $productName
|
||||
|
||||
if ($packageName.Contains('preview')) {
|
||||
if ($packageName.Contains('-')) {
|
||||
$ProductName += 'Preview'
|
||||
$displayName += ' Preview'
|
||||
}
|
||||
@@ -2899,7 +2899,13 @@ function New-MSIXPackage
|
||||
# For stable versions, the last digit is already zero so no changes
|
||||
$pversion = [version]$ProductVersion
|
||||
if ($pversion.Revision -ne 0) {
|
||||
$pversion = [version]::new($pversion.Major, $pversion.Minor, $pversion.Revision, 0)
|
||||
$revision = $pversion.Revision
|
||||
if ($packageName.Contains('-rc')) {
|
||||
# For Release Candidates, we use numbers in the 100 range
|
||||
$revision += 100
|
||||
}
|
||||
|
||||
$pversion = [version]::new($pversion.Major, $pversion.Minor, $revision, 0)
|
||||
$ProductVersion = $pversion.ToString()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user