mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix script to delete with condition dll version is same
This commit is contained in:
parent
81cb20bf91
commit
6d66aa3f44
1 changed files with 3 additions and 2 deletions
|
|
@ -44,8 +44,9 @@ function Delete-Unused ($path, $config) {
|
|||
$target = "$path\Output\$config"
|
||||
$included = Get-ChildItem $target -Filter "*.dll"
|
||||
foreach ($i in $included){
|
||||
Remove-Item -Path $target\Plugins -Include $i -Recurse
|
||||
Write-Host "Deleting duplicated $i"
|
||||
$deleteList = Get-ChildItem $target\Plugins -Include $i -Recurse | Where {$_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion}
|
||||
$deleteList | foreach-object{ Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
|
||||
$deleteList | Remove-Item
|
||||
}
|
||||
Remove-Item -Path $target -Include "*.xml" -Recurse
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue