Fix third party signing for files in sub-folders (#14751)

This commit is contained in:
Travis Plunk 2021-02-09 22:39:15 -08:00 committed by GitHub
parent 894db0feaa
commit 6c1c31adab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,14 @@ jobs:
$null = New-Item -ItemType Directory -Path $signedFilesDirectory -Force
$missingSignatures | ForEach-Object {
Copy-Item -Path $_ -Destination $filesToSignDirectory
$pathWithoutLeaf = Split-Path $_
$relativePath = $pathWithoutLeaf.replace($BuildPath,'')
$targetDirectory = Join-Path -Path $filesToSignDirectory -ChildPath $relativePath
if(!(Test-Path $targetDirectory))
{
$null = New-Item -ItemType Directory -Path $targetDirectory -Force
}
Copy-Item -Path $_ -Destination $targetDirectory
}
displayName: Create ThirdParty Signing Folder