message: feat(android-signing-binskim): Use ClearSign on Linux AppImage file
diff: @@ -22,46 +22,24 @@ jobs:
  artifact: ${{ parameters.unsignedArtifactName }}
  path: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}'
  - - task: CopyFiles@2
  - displayName: 'Copy the AppImage file to detachedSignature'
  - inputs:
  - SourceFolder: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}/packed'
  - contents: |
  - Accessibility_Insights_for_Android*.*
  - TargetFolder: '$(System.DefaultWorkingDirectory)/detachedSignature'
  -
  - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
  - displayName: 'sign dist/detachedSignature'
  + displayName: 'Send to ESRP Code Signing'
  inputs:
  ConnectedServiceName: 'ESRP Code Signing'
  - FolderPath: '$(System.DefaultWorkingDirectory)/detachedSignature'
  + FolderPath: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}'
  Pattern: '*.AppImage'
  signConfigType: inlineSignParams
  inlineOperation: |
  [
  {
  "keyCode": "CP-450779-Pgp",
  - "operationSetCode": "LinuxSign",
  + "operationSetCode": "PgpClearSign",
  "parameters": [],
  "toolName": "sign",
  "toolVersion": "1.0"
  }
  ]
  - - script: 'sudo apt-get install rename'
  - displayName: 'Install rename'
  -
  - - script: 'rename "s/\.AppImage$/.sig/" $(System.DefaultWorkingDirectory)/detachedSignature/*.AppImage'
  - displayName: 'Change signature file extension to sig'
  -
  - - task: CopyFiles@2
  - displayName: 'Copy the detachedSignature file to working folder'
  - inputs:
  - SourceFolder: $(System.DefaultWorkingDirectory)/detachedSignature
  - contents: |
  - Accessibility_Insights_for_Android*.*
  - TargetFolder: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}/packed'
  -
  - script: node ./pipeline/scripts/update-latest-yml.js signing-in-progress/${{ parameters.signedArtifactName }}/packed linux
  displayName: update electron-builder latest yaml after signing
  