mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 14:56:36 +08:00
Fix resources merge for 2301
This commit is contained in:
parent
f3de56044d
commit
ec58edfd47
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user