Update MSIX packaging so the version to Store requirements (#10588)

update packaging msix so version conforms to Store requirment
This commit is contained in:
Steve Lee
2019-09-23 12:26:19 -07:00
committed by Travis Plunk
parent 0e975a52ed
commit becb4d98a6
+11
View File
@@ -2814,6 +2814,17 @@ function New-MSIXPackage
$ProductVersion += ".0"
}
# The Store requires the last digit of the version to be 0 so we swap the build and revision
# This only affects Preview versions where the last digit is the preview number
# 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)
$ProductVersion = $pversion.ToString()
}
Write-Verbose "Version: $productversion" -Verbose
# Appx manifest needs to be in root of source path, but the embedded version needs to be updated
$appxManifest = Get-Content "$RepoRoot\assets\AppxManifest.xml" -Raw
$appxManifest = $appxManifest.Replace('$VERSION$', $ProductVersion)