mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 23:06:34 +08:00
Use relative path
This commit is contained in:
parent
e3e9c0adb8
commit
2e02381b9a
@ -27,8 +27,9 @@ If ((Test-Path -Path "pri") -Eq $true -And (Test-Path -Path "xml") -Eq $true) {
|
|||||||
New-Item -Path "." -Name "priinfo" -ItemType "directory"
|
New-Item -Path "." -Name "priinfo" -ItemType "directory"
|
||||||
$Processes = ForEach ($Item in Get-Item ".\pri\*" -Include "*.pri") {
|
$Processes = ForEach ($Item in Get-Item ".\pri\*" -Include "*.pri") {
|
||||||
$Name = $Item.Name
|
$Name = $Item.Name
|
||||||
|
$RelativePath = $Item | Resolve-Path -Relative
|
||||||
Write-Host "Dumping $Name....`r`n"
|
Write-Host "Dumping $Name....`r`n"
|
||||||
Start-Process -PassThru -WindowStyle Hidden makepri.exe -Args "dump /if ""$Item"" /o /es .\pri\resources.pri /of .\priinfo\$Name.xml /dt detailed"
|
Start-Process -PassThru -WindowStyle Hidden makepri.exe -Args "dump /if $RelativePath /o /es .\pri\resources.pri /of .\priinfo\$Name.xml /dt detailed"
|
||||||
}
|
}
|
||||||
Write-Host "Dumping resources....`r`n"
|
Write-Host "Dumping resources....`r`n"
|
||||||
$Processes | Wait-Process
|
$Processes | Wait-Process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user