Skip to content

Commit

Permalink
Merge pull request #27 from Microsoft/fix-pkg-sign
Browse files Browse the repository at this point in the history
Fix macOS installer package file signing
  • Loading branch information
mjcheetham committed Mar 19, 2019
2 parents 0c5f913 + b895f29 commit 3ad6ec1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .azure-pipelines/templates/osx/pack.signed/step4-signpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@ steps:
artifactName: 'tmp.macpkg_unsigned'
downloadPath: '$(Build.StagingDirectory)\pkg'

- powershell: |
$dir="$(Build.StagingDirectory)\pkg"
Compress-Archive -Path $dir\*.pkg $dir\gcmcorepkg.zip
Remove-Item $dir\*.pkg
displayName: 'Zip package file for signing'
- task: ms-vseng.MicroBuildTasks.7973a23b-33e3-4b00-a7d9-c06d90f8297f.MicroBuildSignMacFiles@1
displayName: Sign package
inputs:
SigningTarget: '$(Build.StagingDirectory)\pkg'
SigningTarget: '$(Build.StagingDirectory)\pkg\gcmcorepkg.zip'
SigningCert: 8003
condition: and(succeeded(), ne(variables['SignType'], 'test'))

- powershell: |
$dir="$(Build.StagingDirectory)\pkg"
Expand-Archive -LiteralPath $dir\gcmcorepkg.zip -DestinationPath $dir -Force
Remove-Item $dir\gcmcorepkg.zip -Force
displayName: 'Unzip signed package file'
- task: DownloadPipelineArtifact@1
displayName: Download signed payload
inputs:
Expand Down

0 comments on commit 3ad6ec1

Please sign in to comment.