mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
delete only the first level dll
This commit is contained in:
parent
d770e6dbb5
commit
8e26a4c077
1 changed files with 0 additions and 6 deletions
|
|
@ -40,12 +40,6 @@ function Delete-Unused ($path, $config) {
|
||||||
$target = "$path\Output\$config"
|
$target = "$path\Output\$config"
|
||||||
$included = Get-ChildItem $target -Filter "*.dll"
|
$included = Get-ChildItem $target -Filter "*.dll"
|
||||||
foreach ($i in $included){
|
foreach ($i in $included){
|
||||||
$ignored = ["System.Text.Encodings.Web.dll"]
|
|
||||||
|
|
||||||
if ($ignored.Contains($i.Name)) {
|
|
||||||
# ignore some specific dll that seems to make issue
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
foreach ($plugin in Get-ChildItem $target\Plugins){
|
foreach ($plugin in Get-ChildItem $target\Plugins){
|
||||||
$deleteList = Get-ChildItem $target\Plugins -Filter $i.Name | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name }
|
$deleteList = Get-ChildItem $target\Plugins -Filter $i.Name | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name }
|
||||||
$deleteList | ForEach-Object{ Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
|
$deleteList | ForEach-Object{ Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue