Fix third party signing for files in sub-folders (#14751)
This commit is contained in:
parent
70f68e9ee9
commit
9b0071e148
|
@ -178,7 +178,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