Fix third party signing for files in sub-folders (#14751)
This commit is contained in:
parent
894db0feaa
commit
6c1c31adab
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue