Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions tools/packaging/packaging.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -215,20 +215,11 @@ function Start-PSPackage {
# Copy files which go into the root package
Get-ChildItem -Path $publishSource | Copy-Item -Destination $Source -Recurse

# files not to include as individual files. These files will be included in the root package
# pwsh.exe is just dotnet.exe renamed by dotnet.exe during the build.
$toExclude = @(
'hostfxr.dll'
'hostpolicy.dll'
'libhostfxr.so'
'libhostpolicy.so'
'libhostfxr.dylib'
'libhostpolicy.dylib'
'Publish'
'pwsh.exe'
)
# Copy file which go into symbols.zip
Get-ChildItem -Path $buildSource | Where-Object {$toExclude -inotcontains $_.Name} | Copy-Item -Destination $symbolsSource -Recurse
$signingXml = [xml] (Get-Content (Join-Path $PSScriptRoot "..\releaseBuild\signing.xml" -Resolve))
# Only include the files we sign for compliance scanning, those are the files we build.
$filesToInclude = $signingXml.SignConfigXML.job.file.src | Where-Object { -not $_.endswith('pwsh.exe') -and ($_.endswith(".dll") -or $_.endswith(".exe")) } | ForEach-Object { ($_ -split '\\')[-1] }
Comment thread
adityapatwardhan marked this conversation as resolved.
Resolved
$filesToInclude += $filesToInclude | ForEach-Object { $_ -replace '.dll', '.pdb' }
Get-ChildItem -Path $buildSource | Where-Object { $_.Name -in $filesToInclude } | Copy-Item -Destination $symbolsSource -Recurse

# Zip symbols.zip to the root package
$zipSource = Join-Path $symbolsSource -ChildPath '*'
Expand Down
6 changes: 3 additions & 3 deletions tools/releaseBuild/azureDevOps/templates/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:

- template: expand-compliance.yml
parameters:
architecture: x86
architecture: fxdependent
version: $(version)

- template: expand-compliance.yml
parameters:
architecture: x64
architecture: x86
version: $(version)

- template: expand-compliance.yml
parameters:
architecture: fxdependent
architecture: x64
version: $(version)

- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
Expand Down