[release/v7.6] Create infrastructure to create two msixs and msixbundles for LTS and Stable (#27071)

This commit is contained in:
Dongbo Wang
2026-03-19 15:33:13 -07:00
committed by GitHub
parent 44e158c121
commit 031e7c9e8d
3 changed files with 81 additions and 24 deletions
+8 -11
View File
@@ -4274,18 +4274,8 @@ function New-MSIXPackage
$makepri = Get-Item (Join-Path $makeappx.Directory "makepri.exe") -ErrorAction Stop
$displayName = $ProductName
$ProductSemanticVersion = Get-PackageSemanticVersion -Version $ProductVersion
$productSemanticVersionWithName = $ProductName + '-' + $ProductSemanticVersion
$packageName = $productSemanticVersionWithName
if ($Private) {
$ProductNameSuffix = 'Private'
}
if ($ProductNameSuffix) {
$packageName += "-$ProductNameSuffix"
}
$displayName = $productName
if ($Private) {
$ProductName = 'PowerShell-Private'
@@ -4301,6 +4291,13 @@ function New-MSIXPackage
Write-Verbose -Verbose "ProductName: $productName"
Write-Verbose -Verbose "DisplayName: $displayName"
$packageName = $ProductName + '-' + $ProductSemanticVersion
# Appends Architecture to the package name
if ($ProductNameSuffix) {
$packageName += "-$ProductNameSuffix"
}
$ProductVersion = Get-WindowsVersion -PackageName $packageName
# Any app that is submitted to the Store must have a PhoneIdentity in its appxmanifest.