@@ -3183,9 +3183,18 @@ function New-MSIXPackage
31833183
31843184 Write-Verbose " Version: $productversion " - Verbose
31853185
3186+ $isPreview = Test-IsPreview - Version $ProductSemanticVersion
3187+ if ($isPreview ) {
3188+ Write-Verbose " Using Preview assets" - Verbose
3189+ }
3190+
31863191 # Appx manifest needs to be in root of source path, but the embedded version needs to be updated
3192+ # cp-459155 is 'CN=Microsoft Windows Store Publisher (Store EKU), O=Microsoft Corporation, L=Redmond, S=Washington, C=US'
3193+ # authenticodeFormer is 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'
3194+ $releasePublisher = ' CN=Microsoft Windows Store Publisher (Store EKU), O=Microsoft Corporation, L=Redmond, S=Washington, C=US'
3195+
31873196 $appxManifest = Get-Content " $RepoRoot \assets\AppxManifest.xml" - Raw
3188- $appxManifest = $appxManifest.Replace (' $VERSION$' , $ProductVersion ).Replace(' $ARCH$' , $Architecture ).Replace(' $PRODUCTNAME$' , $productName ).Replace(' $DISPLAYNAME$' , $displayName )
3197+ $appxManifest = $appxManifest.Replace (' $VERSION$' , $ProductVersion ).Replace(' $ARCH$' , $Architecture ).Replace(' $PRODUCTNAME$' , $productName ).Replace(' $DISPLAYNAME$' , $displayName ).Replace( ' $PUBLISHER$ ' , $releasePublisher )
31893198 Set-Content - Path " $ProductSourcePath \AppxManifest.xml" - Value $appxManifest - Force
31903199 # Necessary image assets need to be in source assets folder
31913200 $assets = @ (
@@ -3200,11 +3209,6 @@ function New-MSIXPackage
32003209 $null = New-Item - ItemType Directory - Path " $ProductSourcePath \assets"
32013210 }
32023211
3203- $isPreview = Test-IsPreview - Version $ProductSemanticVersion
3204- if ($isPreview ) {
3205- Write-Verbose " Using Preview assets" - Verbose
3206- }
3207-
32083212 $assets | ForEach-Object {
32093213 if ($isPreview ) {
32103214 Copy-Item - Path " $RepoRoot \assets\$_ -Preview.png" - Destination " $ProductSourcePath \assets\$_ .png"
0 commit comments