From 2e02381b9addf70044e5464fab3c58dd308d584b Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Sun, 26 Mar 2023 07:28:12 +0800 Subject: [PATCH] Use relative path --- installer/MakePri.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/MakePri.ps1 b/installer/MakePri.ps1 index 8441457..d77fa6e 100644 --- a/installer/MakePri.ps1 +++ b/installer/MakePri.ps1 @@ -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" $Processes = ForEach ($Item in Get-Item ".\pri\*" -Include "*.pri") { $Name = $Item.Name + $RelativePath = $Item | Resolve-Path -Relative 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" $Processes | Wait-Process