Add pdb and config files from deps to the package

This commit is contained in:
Shivam Mathur
2024-05-06 02:26:11 +05:30
parent 72236e2ee8
commit fa2cd7821d

View File

@@ -45,9 +45,15 @@ function Add-Package {
}
# TODO: Filter these using deplister
if(Test-Path ..\deps) {
Get-ChildItem -Path ..\deps\bin -Recurse -Filter "*.dll" | ForEach-Object {
Get-ChildItem -Path ..\deps\bin -Recurse -Include "*.dll", "*.pdb" | ForEach-Object {
Copy-Item -Path $_.FullName -Destination artifacts -Force
}
if(Test-Path (Join-Path -Path ..\deps\bin -ChildPath "*.xml")) {
New-Item -ItemType Directory -Path artifacts\config -Force | Out-Null
Get-ChildItem -Path ..\deps\bin -Recurse -Filter "*.xml" | ForEach-Object {
Copy-Item -Path $_.FullName -Destination artifacts\config -Force
}
}
}
Set-Location $currentDirectory\artifacts