Fix breaks in packages daily build due to macOS signing changes (#13421)

This commit is contained in:
Travis Plunk
2020-08-12 15:08:54 -07:00
committed by GitHub
parent ede10850cc
commit 53fd453ef9
3 changed files with 6 additions and 3 deletions
@@ -38,16 +38,19 @@ jobs:
- task: DownloadBuildArtifacts@0
displayName: Download macosBinResults
inputs:
artifactName: 'macosBinResults'
itemPattern: '**/*.zip'
downloadPath: '$(System.ArtifactsDirectory)/Symbols'
- task: DownloadBuildArtifacts@0
displayName: Download signedMacOsBins
inputs:
artifactName: 'signedMacOsBins'
itemPattern: '**/*'
downloadPath: '$(System.ArtifactsDirectory)/macOsBins'
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'true'))
- pwsh: |
Get-ChildItem "$(System.ArtifactsDirectory)\*" -Recurse
@@ -93,8 +93,8 @@ jobs:
- pwsh: |
$null = new-item -type directory -path "$(Build.StagingDirectory)\macos-unsigned"
Copy-Item -Path "$(System.ArtifactsDirectory)\results\powershell-$(Version)-osx-x64.pkg" -Destination "$(Build.StagingDirectory)\macos-unsigned"
Copy-Item -Path "$(System.ArtifactsDirectory)\results\powershell-$(Version)-osx-x64.tar.gz" -Destination "$(Build.StagingDirectory)\macos-unsigned"
Copy-Item -Path "$(System.ArtifactsDirectory)\macosPkgResults\powershell-$(Version)-osx-x64.pkg" -Destination "$(Build.StagingDirectory)\macos-unsigned"
Copy-Item -Path "$(System.ArtifactsDirectory)\macosPkgResults\powershell-$(Version)-osx-x64.tar.gz" -Destination "$(Build.StagingDirectory)\macos-unsigned"
displayName: 'Create unsigned folder to upload'
condition: and(succeeded(), ne(variables['SHOULD_SIGN'], 'true'))
@@ -126,7 +126,7 @@ jobs:
outPathRoot: '$(System.ArtifactsDirectory)\signed'
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'true'))
- powershell: |
- pwsh: |
New-Item -ItemType Directory -Path $(System.ArtifactsDirectory)\signed -Force
displayName: 'Create empty signed folder'
condition: and(succeeded(), ne(variables['SHOULD_SIGN'], 'true'))