mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Remove xml files when they are for a dll or exe
This commit is contained in:
parent
41ece422c9
commit
03da3f3617
25
build.ps1
25
build.ps1
@ -39,7 +39,20 @@ Function Build()
|
|||||||
Function CleanFolder($path)
|
Function CleanFolder($path)
|
||||||
{
|
{
|
||||||
Write-Host Removing XMLDoc files
|
Write-Host Removing XMLDoc files
|
||||||
get-childitem $path -File -Filter *.xml -Recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter *.xml -Recurse | foreach ($_) {
|
||||||
|
|
||||||
|
$filename = $_.FullName
|
||||||
|
$exeFilename = $filename -replace "xml", "exe"
|
||||||
|
$dllFilename = $filename -replace "xml", "dll"
|
||||||
|
|
||||||
|
if (Test-Path $exeFilename) {
|
||||||
|
remove-item $_.fullname
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Test-Path $dllFilename) {
|
||||||
|
remove-item $_.fullname
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get-childitem $path -File -Filter *.transform -Recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter *.transform -Recurse | foreach ($_) {remove-item $_.fullname}
|
||||||
|
|
||||||
@ -209,8 +222,8 @@ Function CleanupWindowsPackage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
Build
|
Build
|
||||||
RunGrunt
|
# RunGrunt
|
||||||
PackageMono
|
# PackageMono
|
||||||
PackageOsx
|
# PackageOsx
|
||||||
PackageTests
|
# PackageTests
|
||||||
CleanupWindowsPackage
|
# CleanupWindowsPackage
|
||||||
|
Loading…
Reference in New Issue
Block a user