use sign service v2 (#697)
This commit is contained in:
parent
636feec6b9
commit
ef5856adaa
|
@ -10,14 +10,14 @@ if([string]::IsNullOrEmpty($env:SignClientSecret)){
|
||||||
|
|
||||||
$appSettings = "$currentDirectory\appsettings.json"
|
$appSettings = "$currentDirectory\appsettings.json"
|
||||||
|
|
||||||
$appPath = "$currentDirectory\..\packages\SignClient\tools\SignClient.dll"
|
$appPath = "$currentDirectory\..\packages\SignClient\tools\netcoreapp2.0\SignClient.dll"
|
||||||
|
|
||||||
$releases = ls $currentDirectory\..\Releases\*.exe | Select -ExpandProperty FullName
|
$releases = ls $currentDirectory\..\Releases\*.exe | Select -ExpandProperty FullName
|
||||||
|
|
||||||
foreach ($release in $releases){
|
foreach ($release in $releases){
|
||||||
Write-Host "Submitting $release for signing"
|
Write-Host "Submitting $release for signing"
|
||||||
|
|
||||||
dotnet $appPath 'sign' -c $appSettings -i $release -s $env:SignClientSecret -n 'Open Live Writer' -d 'Open Live Writer' -u 'http://openlivewriter.org'
|
dotnet $appPath 'sign' -c $appSettings -i $release -r $env:SignClientUser -s $env:SignClientSecret -n 'Open Live Writer' -d 'Open Live Writer' -u 'http://openlivewriter.org'
|
||||||
|
|
||||||
Write-Host "Finished signing $release"
|
Write-Host "Finished signing $release"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
"SignClient": {
|
"SignClient": {
|
||||||
"AzureAd": {
|
"AzureAd": {
|
||||||
"AADInstance": "https://login.microsoftonline.com/",
|
"AADInstance": "https://login.microsoftonline.com/",
|
||||||
"ClientId": "1d2c0ac7-8c6d-4a4e-a568-67425aa48bd0",
|
"ClientId": "c248d68a-ba6f-4aa9-8a68-71fe872063f8",
|
||||||
"TenantId": "dotnetfoundation.onmicrosoft.com"
|
"TenantId": "16076fdc-fcc1-4a15-b1ca-32c9a255900e"
|
||||||
},
|
},
|
||||||
"Service": {
|
"Service": {
|
||||||
"Url": "https://dnfsignservice.azurewebsites.net/",
|
"Url": "https://codesign.dotnetfoundation.org/",
|
||||||
"ResourceId": "http://sign.dotnetfoundation.org/server"
|
"ResourceId": "https://SignService/3c30251f-36f3-490b-a955-520addb85001"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -11,7 +11,9 @@ environment:
|
||||||
OlwBloggerClientSecret:
|
OlwBloggerClientSecret:
|
||||||
secure: ym7cbPINJz58iEgVlQCDbRz2W1CTYnxWsvMpMvxHFY4=
|
secure: ym7cbPINJz58iEgVlQCDbRz2W1CTYnxWsvMpMvxHFY4=
|
||||||
SignClientSecret:
|
SignClientSecret:
|
||||||
secure: CHm+63iqVR0ddIHjGwE8nYF2EdUikH5VzCcszekUwptHkCLTuJ3C9ci8fcyox03s
|
secure: Ks35w5ZOk78Bla9953hrhvDm2+t2NY83VgI+IcW92L0=
|
||||||
|
SignClientUser:
|
||||||
|
secure: v2LT5VnPWsq3/aLDN0xsyNjdwCZutUSH8CS/htCB8yXbzmwWrQIWs7TvJdrFqZB+
|
||||||
nuget:
|
nuget:
|
||||||
disable_publish_on_pr: true
|
disable_publish_on_pr: true
|
||||||
build_script:
|
build_script:
|
||||||
|
@ -19,7 +21,7 @@ build_script:
|
||||||
- cmd: ./build.cmd
|
- cmd: ./build.cmd
|
||||||
test: off
|
test: off
|
||||||
install:
|
install:
|
||||||
- cmd: nuget install SignClient -Version 0.7.0 -SolutionDir %APPVEYOR_BUILD_FOLDER% -Verbosity quiet -ExcludeVersion
|
- cmd: nuget install SignClient -Version 0.9.0 -SolutionDir %APPVEYOR_BUILD_FOLDER% -Verbosity quiet -ExcludeVersion
|
||||||
after_build:
|
after_build:
|
||||||
- ps: '.\SignClient\Sign-Package.ps1'
|
- ps: '.\SignClient\Sign-Package.ps1'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in New Issue