Remove more duplicated dll

This commit is contained in:
bao-qian 2017-03-30 18:52:49 +01:00
parent 0a34143388
commit b16abfba9c

View File

@ -43,12 +43,10 @@ function Copy-Resources ($path, $config) {
function Delete-Unused ($path, $config) { function Delete-Unused ($path, $config) {
$target = "$path\Output\$config" $target = "$path\Output\$config"
$included = @( $included = Get-ChildItem $target -Filter "*.dll"
"Wox.Plugin.pdb", "Wox.Plugin.dll", "Wox.Core.*", "Wox.Infrastructure.*",
"ICSharpCode.*", "JetBrains.*", "Pinyin4Net.*", "NLog.*"
)
foreach ($i in $included){ foreach ($i in $included){
Remove-Item -Path $target\Plugins -Include $i -Recurse Remove-Item -Path $target\Plugins -Include $i -Recurse
Write-Host "Deleting duplicated $i"
} }
Remove-Item -Path $target -Include "*.xml" -Recurse Remove-Item -Path $target -Include "*.xml" -Recurse
} }