forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled ESRPCodeSign for docfx v2 - dev (dotnet#5832)
* Enable code sign for docfxv2 - dev * Updated matched paths with include filters instead of exclude paths. * minor fix * fixed build error * Included pack step * Resolved review comments. * Fixed batchsign policy file. * Fixed build/pack/codesign * Fixed indentation; Moved pack after e2etest
- Loading branch information
1 parent
70fd778
commit 6289083
Showing
6 changed files
with
350 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"Version": "1.0.0", | ||
"UseMinimatch": true, | ||
"SignBatches": [ | ||
{ | ||
"MatchedPath": [ | ||
"Microsoft.DocAsCode*.dll", | ||
"*.exe" | ||
], | ||
"SigningInfo": { | ||
"Operations": [ | ||
{ | ||
"KeyCode": "CP-230012", | ||
"OperationSetCode": "SigntoolSign", | ||
"parameters": [ | ||
{ | ||
"parameterName": "OpusName", | ||
"parameterValue": "Microsoft" | ||
}, | ||
{ | ||
"parameterName": "OpusInfo", | ||
"parameterValue": "http://www.microsoft.com" | ||
}, | ||
{ | ||
"parameterName": "PageHash", | ||
"parameterValue": "/NPH" | ||
}, | ||
{ | ||
"parameterName": "TimeStamp", | ||
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" | ||
}, | ||
{ | ||
"parameterName": "FileDigest", | ||
"parameterValue": "/fd \"SHA256\"" | ||
} | ||
], | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
}, | ||
{ | ||
"KeyCode": "CP-230012", | ||
"OperationSetCode": "SigntoolVerify", | ||
"Parameters": [ | ||
{ | ||
"parameterName": "VerifyAll", | ||
"parameterValue": "/all" | ||
} | ||
], | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"MatchedPath": [ | ||
"DotLiquid.resources.dll", | ||
"AutoMapper.dll", | ||
"CommandLine.dll", | ||
"DotLiquid.dll", | ||
"Dotnet.ProjInfo.dll", | ||
"Dotnet.ProjInfo.Helpers.dll", | ||
"FSharp.Compiler.*.dll", | ||
"HtmlAgilityPack.dll", | ||
"itextsharp.dll", | ||
"Jint.dll", | ||
"Markdig.dll", | ||
"Newtonsoft.Json.dll", | ||
"Newtonsoft.Json.Schema.dll", | ||
"Nustache.Core.dll", | ||
"Owin.dll", | ||
"SQLitePCLRaw.core.dll", | ||
"YamlDotNet.dll" | ||
], | ||
"SigningInfo": { | ||
"Operations": [ | ||
{ | ||
"KeyCode": "CP-231522", | ||
"OperationSetCode": "SigntoolSign", | ||
"parameters": [ | ||
{ | ||
"parameterName": "OpusName", | ||
"parameterValue": "Microsoft" | ||
}, | ||
{ | ||
"parameterName": "OpusInfo", | ||
"parameterValue": "http://www.microsoft.com" | ||
}, | ||
{ | ||
"parameterName": "Append", | ||
"parameterValue": "/as" | ||
}, | ||
{ | ||
"parameterName": "PageHash", | ||
"parameterValue": "/NPH" | ||
}, | ||
{ | ||
"parameterName": "TimeStamp", | ||
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" | ||
}, | ||
{ | ||
"parameterName": "FileDigest", | ||
"parameterValue": "/fd \"SHA256\"" | ||
} | ||
], | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
}, | ||
{ | ||
"KeyCode": "CP-231522", | ||
"OperationSetCode": "SigntoolVerify", | ||
"Parameters": [ | ||
{ | ||
"parameterName": "VerifyAll", | ||
"parameterValue": "/all" | ||
} | ||
], | ||
"ToolName": "sign", | ||
"ToolVersion": "1.0" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
function GetOperatingSystemName() | ||
{ | ||
if ([environment]::OSVersion.Platform -eq "Win32NT") { | ||
return "Windows" | ||
} | ||
else { | ||
return "Linux" | ||
} | ||
} | ||
|
||
function GetNuGetCommand([string]$os) | ||
{ | ||
if ($os -eq "Windows") { | ||
return "$env:LOCALAPPDATA/Nuget/Nuget.exe" | ||
} | ||
else { | ||
return "nuget" | ||
} | ||
} | ||
|
||
function ProcessLastExitCode { | ||
param($exitCode, $msg) | ||
if ($exitCode -eq 0) { | ||
Write-Host "Success: $msg | ||
" -ForegroundColor Green | ||
} | ||
else { | ||
Write-Host "Error $($exitCode): $msg | ||
" -ForegroundColor Red | ||
Pop-Location | ||
Exit 1 | ||
} | ||
} | ||
|
||
function ValidateCommand { | ||
param($command) | ||
return (Get-Command $command -ErrorAction SilentlyContinue) -ne $null | ||
} |
Oops, something went wrong.