Skip to content

Commit 5a840e3

Browse files
committed
Excluding ttd logs from build artifacts
1 parent 80b8dde commit 5a840e3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Build/scripts/finalize_build.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,16 @@ Get-ChildItem -Path (Join-Path $sourcesDir "Build") "*.nuspec" `
126126
$BinFolder = Join-Path $Env:BinariesDirectory "bin\${Env:BuildName}"
127127
$BinDropPath = Join-Path $destinationBase "bin"
128128
Write-Output "Copying `"$BinFolder`" to `"$BinDropPath`"..."
129-
Copy-Item -Verbose $BinFolder $BinDropPath -Recurse -Force -Exclude "*_ttdlog*"
129+
md $BinDropPath
130+
Get-ChildItem -Path $BinFolder -Recurse |
131+
where {$_.FullName -notmatch ".*_ttdlog.*" } |
132+
Copy-Item -Verbose -Force -Destination {
133+
if ($_.PSIsContainer) {
134+
Join-Path $BinDropPath $_.Parent.FullName.Substring($BinFolder.length)
135+
} else {
136+
Join-Path $BinDropPath $_.FullName.Substring($BinFolder.length)
137+
}
138+
}
130139

131140
#
132141
# Copy POGO directory if present for this build

0 commit comments

Comments
 (0)