6 [Parameter
(Mandatory
=$true, Position
=0)]
10 [Parameter
(Mandatory
=$true, Position
=1)]
14 [Parameter
(Mandatory
=$true, Position
=2)]
18 [Parameter
(Mandatory
=$true, Position
=3)]
22 function Prepare-Manifest
{
27 (Get-Content "$($PSScriptRoot)\manifests\Package.appxmanifest").replace
('$PUBLISHER$', $Publisher).replace
('$IDENTITY_NAME$', $IdentityName).replace
('$VERSION$', $AppVersion).replace
('$ARCHITECTURE$', $Architecture) | Set-Content "$($OutputFolder)\Package-$($Architecture).appxmanifest"
30 # Prepare the application binary manifests
33 Prepare-Manifest arm64
35 # Prepare the assets package manifest
36 (Get-Content "$($PSScriptRoot)\manifests\AssetsPackage.appxmanifest").replace
('$PUBLISHER$', $Publisher).replace
('$IDENTITY_NAME$', $IdentityName).replace
('$VERSION$', $AppVersion) | Set-Content "$($OutputFolder)\AssetsPackage.appxmanifest"
38 # Prepare the overall package manifest
39 (Get-Content "$($PSScriptRoot)\manifests\Package.appxmanifest").replace
('$PUBLISHER$', $Publisher).replace
('$IDENTITY_NAME$', $IdentityName).replace
('$VERSION$', $AppVersion).replace
(' ProcessorArchitecture="$ARCHITECTURE$"', '') | Set-Content "$($OutputFolder)\Package.appxmanifest"
41 # Copy the PackagingLayout XML file
42 (Get-Content "$($PSScriptRoot)\manifests\PackagingLayout.xml") | Set-Content "$($OutputFolder)\PackagingLayout.xml"