trying the stackoverflow tutorial
This commit is contained in:
parent
165d497b1f
commit
dbce594727
|
@ -7,14 +7,18 @@ variables:
|
||||||
- group: code-signing-test
|
- group: code-signing-test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: DotNetCoreCLI@2
|
#- task: DotNetCoreCLI@2
|
||||||
inputs:
|
# inputs:
|
||||||
command: 'custom'
|
# command: 'custom'
|
||||||
custom: 'tool'
|
# custom: 'tool'
|
||||||
arguments: 'install --global azuresigntool'
|
# arguments: 'install --global azuresigntool'
|
||||||
displayName: 'install AzureSignTool'
|
# displayName: 'install AzureSignTool'
|
||||||
|
|
||||||
- script: azuresigntool sign --help
|
- script: |
|
||||||
|
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
|
||||||
|
dotnet tool install --global AzureSignTool --version 2.0.17
|
||||||
|
|
||||||
|
- script: AzureSignTool.exe sign --help
|
||||||
displayName: 'Debugging AST'
|
displayName: 'Debugging AST'
|
||||||
|
|
||||||
- task: DownloadGitHubRelease@0
|
- task: DownloadGitHubRelease@0
|
||||||
|
@ -33,18 +37,14 @@ steps:
|
||||||
echo GIT_RELEASE_VERSION=$(git_release_version)
|
echo GIT_RELEASE_VERSION=$(git_release_version)
|
||||||
displayName: 'show artifacts'
|
displayName: 'show artifacts'
|
||||||
|
|
||||||
- task: CmdLine@2
|
|
||||||
displayName: 'Sign artifact test'
|
|
||||||
inputs:
|
|
||||||
script: AzureSignTool sign -du "$(SigningURL)" -kvu "$(SigningVaultURL)" -kvi "$(SigningClientId)" -kvs "$(SigningClientSecret)" -kvc "$(SigningCertName)" -v "$(System.ArtifactsDirectory)\Bitwarden-$(git_release_version)-ia32.appx"
|
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
azuresigntool sign ^
|
AzureSignTool.exe sign ^
|
||||||
-kvu "$(SigningVaultURL)" ^
|
-kvu "$(SigningVaultURL)" ^
|
||||||
-kvi "$(SigningClientId)" ^
|
-kvi "$(SigningClientId)" ^
|
||||||
-kvs "$(SigningClientSecret)" ^
|
-kvs "$(SigningClientSecret)" ^
|
||||||
-kvt "$(SigningTenantId)" ^
|
-kvt "$(SigningTenantId)" ^
|
||||||
-kvc "$(SigningCertName)" ^
|
-kvc "$(SigningCertName)" ^
|
||||||
|
-tr http://timestamp.digicert.com ^
|
||||||
-v ^
|
-v ^
|
||||||
"$(System.ArtifactsDirectory)\Bitwarden-$(git_release_version)-ia32.appx"
|
"$(System.ArtifactsDirectory)\Bitwarden-$(git_release_version)-ia32.appx"
|
||||||
displayName: 'Sign artifacts 32-bit'
|
displayName: 'Sign artifacts 32-bit'
|
||||||
|
@ -60,6 +60,11 @@ steps:
|
||||||
"$(System.ArtifactsDirectory)\Bitwarden-$(git_release_version)-x64.appx"
|
"$(System.ArtifactsDirectory)\Bitwarden-$(git_release_version)-x64.appx"
|
||||||
displayName: 'Sign artifacts 64-bit'
|
displayName: 'Sign artifacts 64-bit'
|
||||||
|
|
||||||
|
- task: CmdLine@2
|
||||||
|
displayName: 'Sign artifact test'
|
||||||
|
inputs:
|
||||||
|
script: AzureSignTool sign -du "$(SigningURL)" -kvu "$(SigningVaultURL)" -kvi "$(SigningClientId)" -kvs "$(SigningClientSecret)" -kvc "$(SigningCertName)" -v "$(System.ArtifactsDirectory)\Bitwarden-$(git_release_version)-ia32.appx"
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
inputs:
|
inputs:
|
||||||
pathToPublish: '$(System.DefaultWorkingDirectory)/dist/Bitwarden-$(git_release_version)-ia32.appx'
|
pathToPublish: '$(System.DefaultWorkingDirectory)/dist/Bitwarden-$(git_release_version)-ia32.appx'
|
||||||
|
|
Loading…
Reference in New Issue