Remove from filelist after delete

This commit is contained in:
Howard Wu 2023-03-19 02:01:18 +08:00
parent 22d67db126
commit 3d2d6281b9

View File

@ -36,9 +36,13 @@ If ((Test-Path -Path "pri") -Eq $true -And (Test-Path -Path "xml") -Eq $true) {
} }
$ProjectXml.Save($AppxManifestFile) $ProjectXml.Save($AppxManifestFile)
Remove-Item 'pri' -Recurse Remove-Item 'pri' -Recurse
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'pri' -NotMatch)
Remove-Item 'xml' -Recurse Remove-Item 'xml' -Recurse
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'xml' -NotMatch)
Remove-Item 'makepri.exe' Remove-Item 'makepri.exe'
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'makepri.exe' -NotMatch)
Remove-Item $PSCommandPath -Force Remove-Item $PSCommandPath -Force
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'MakePri.ps1' -NotMatch)
exit 0 exit 0
} }
} }