From 3d2d6281b99d0305ae3ddb2abb0264422b84f6fc Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Sun, 19 Mar 2023 02:01:18 +0800 Subject: [PATCH] Remove from filelist after delete --- installer/MakePri.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer/MakePri.ps1 b/installer/MakePri.ps1 index b4acb51..6b075bd 100644 --- a/installer/MakePri.ps1 +++ b/installer/MakePri.ps1 @@ -36,9 +36,13 @@ If ((Test-Path -Path "pri") -Eq $true -And (Test-Path -Path "xml") -Eq $true) { } $ProjectXml.Save($AppxManifestFile) Remove-Item 'pri' -Recurse + Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'pri' -NotMatch) Remove-Item 'xml' -Recurse + Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'xml' -NotMatch) 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 + Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'MakePri.ps1' -NotMatch) exit 0 } }