77 $architecture = ' current' ,
88 [switch ]$Clippy ,
99 [switch ]$SkipBuild ,
10- [ValidateSet (' msix' , ' msixbundle' , ' tgz' , ' zip' )]
10+ [ValidateSet (' msix' , ' msix-private ' , ' msixbundle' , ' tgz' , ' zip' )]
1111 $packageType ,
1212 [switch ]$Test ,
1313 [switch ]$GetPackageVersion ,
@@ -422,7 +422,7 @@ if ($packageType -eq 'msixbundle') {
422422 $msixPath = Join-Path $PSScriptRoot ' bin' ' msix'
423423 & $makeappx bundle / d $msixPath / p " $PSScriptRoot \bin\$packageName .msixbundle"
424424 return
425- } elseif ($packageType -eq ' msix' ) {
425+ } elseif ($packageType -eq ' msix' -or $packageType -eq ' msix-private ' ) {
426426 if (! $IsWindows ) {
427427 throw " MSIX is only supported on Windows"
428428 }
@@ -431,21 +431,34 @@ if ($packageType -eq 'msixbundle') {
431431 throw ' MSIX requires a specific architecture'
432432 }
433433
434+ $isPrivate = $packageType -eq ' msix-private'
435+
434436 $makeappx = Find-MakeAppx
435437 $makepri = Get-Item (Join-Path $makeappx.Directory " makepri.exe" ) - ErrorAction Stop
436438 $displayName = " DesiredStateConfiguration"
437439 $isPreview = $productVersion -like ' *-*'
438440 $productName = " DesiredStateConfiguration"
439441 if ($isPreview ) {
440442 Write-Verbose - Verbose " Preview version detected"
441- $productName += " -Preview"
443+ if ($isPrivate ) {
444+ $productName += " -Private"
445+ }
446+ else {
447+ $productName += " -Preview"
448+ }
442449 # save preview number
443450 $previewNumber = $productVersion -replace ' .*?-[a-z]+\.([0-9]+)' , ' $1'
444451 # remove label from version
445452 $productVersion = $productVersion.Split (' -' )[0 ]
446453 # replace revision number with preview number
447454 $productVersion = $productVersion -replace ' (\d+)$' , " $previewNumber .0"
448- $displayName += " -Preview"
455+
456+ if ($isPrivate ) {
457+ $displayName += " -Private"
458+ }
459+ else {
460+ $displayName += " -Preview"
461+ }
449462 }
450463 Write-Verbose - Verbose " Product version is $productVersion "
451464 $arch = if ($architecture -eq ' aarch64-pc-windows-msvc' ) { ' arm64' } else { ' x64' }
@@ -517,7 +530,7 @@ if ($packageType -eq 'msixbundle') {
517530 throw " Failed to create msix package"
518531 }
519532
520- Write-Host - ForegroundColor Green " `n MSIX package is created at $packageName .msix "
533+ Write-Host - ForegroundColor Green " `n MSIX package is created at $packageName "
521534} elseif ($packageType -eq ' zip' ) {
522535 $zipTarget = Join-Path $PSScriptRoot ' bin' $architecture ' zip'
523536 if (Test-Path $zipTarget ) {
0 commit comments