From ec58edfd47c96f4de68e30a82d4cc9f8e3e62a12 Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Sun, 19 Mar 2023 22:02:18 +0800 Subject: [PATCH] Fix resources merge for 2301 --- installer/MakePri.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/MakePri.ps1 b/installer/MakePri.ps1 index d429152..f81b91a 100644 --- a/installer/MakePri.ps1 +++ b/installer/MakePri.ps1 @@ -17,14 +17,15 @@ # If ((Test-Path -Path "pri") -Eq $true -And (Test-Path -Path "xml") -Eq $true) { - $proc = Start-Process -PassThru makepri.exe -Args "resourcepack /pr .\pri /cf .\xml\priconfig.xml /of .\resources.pri /if .\resources.pri /o" + $AppxManifestFile = ".\AppxManifest.xml" + Copy-Item .\resources.pri -Destination ".\pri\resources.pri" + $proc = Start-Process -PassThru makepri.exe -Args "new /pr .\pri /cf .\xml\priconfig.xml /of .\resources.pri /mn $AppxManifestFile /o" $proc.WaitForExit() If ($proc.ExitCode -Ne 0) { Write-Warning "Failed to merge resources`r`n" exit 1 } else { - $AppxManifestFile = ".\AppxManifest.xml" $ProjectXml = [xml](Get-Content $AppxManifestFile) $ProjectResources = $ProjectXml.Package.Resources; $Item = Get-Item .\xml\* -Exclude "priconfig.xml" -Include "*.xml"