mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.6] Create infrastructure to create two msixs and msixbundles for LTS and Stable (#27071)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user