Skip to content

Commit ab0e665

Browse files
Nikola HristovNikola Hristov
authored andcommitted
1 parent a094b8d commit ab0e665

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

build/azure-pipelines/common/sign.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/azure-pipelines/common/sign.ts

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ interface Params {
3636
readonly toolVersion: string;
3737
}
3838
function getParams(type: string): Params[] {
39+
<<<<<<< HEAD
3940
switch (type) {
4041
case 'sign-windows':
4142
return [
@@ -113,6 +114,99 @@ function getParams(type: string): Params[] {
113114
default:
114115
throw new Error(`Sign type ${type} not found`);
115116
}
117+
=======
118+
switch (type) {
119+
case 'sign-windows':
120+
return [
121+
{
122+
keyCode: 'CP-230012',
123+
operationSetCode: 'SigntoolSign',
124+
parameters: [
125+
{ parameterName: 'OpusName', parameterValue: 'VS Code' },
126+
{ parameterName: 'OpusInfo', parameterValue: 'https://code.visualstudio.com/' },
127+
{ parameterName: 'Append', parameterValue: '/as' },
128+
{ parameterName: 'FileDigest', parameterValue: '/fd "SHA256"' },
129+
{ parameterName: 'PageHash', parameterValue: '/NPH' },
130+
{ parameterName: 'TimeStamp', parameterValue: '/tr "http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer" /td sha256' }
131+
],
132+
toolName: 'sign',
133+
toolVersion: '1.0'
134+
},
135+
{
136+
keyCode: 'CP-230012',
137+
operationSetCode: 'SigntoolVerify',
138+
parameters: [
139+
{ parameterName: 'VerifyAll', parameterValue: '/all' }
140+
],
141+
toolName: 'sign',
142+
toolVersion: '1.0'
143+
}
144+
];
145+
case 'sign-windows-appx':
146+
return [
147+
{
148+
keyCode: 'CP-229979',
149+
operationSetCode: 'SigntoolSign',
150+
parameters: [
151+
{ parameterName: 'OpusName', parameterValue: 'VS Code' },
152+
{ parameterName: 'OpusInfo', parameterValue: 'https://code.visualstudio.com/' },
153+
{ parameterName: 'FileDigest', parameterValue: '/fd "SHA256"' },
154+
{ parameterName: 'PageHash', parameterValue: '/NPH' },
155+
{ parameterName: 'TimeStamp', parameterValue: '/tr "http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer" /td sha256' }
156+
],
157+
toolName: 'sign',
158+
toolVersion: '1.0'
159+
},
160+
{
161+
keyCode: 'CP-229979',
162+
operationSetCode: 'SigntoolVerify',
163+
parameters: [],
164+
toolName: 'sign',
165+
toolVersion: '1.0'
166+
}
167+
];
168+
case 'sign-pgp':
169+
return [{
170+
keyCode: 'CP-450779-Pgp',
171+
operationSetCode: 'LinuxSign',
172+
parameters: [],
173+
toolName: 'sign',
174+
toolVersion: '1.0'
175+
}];
176+
case 'sign-darwin':
177+
return [{
178+
keyCode: 'CP-401337-Apple',
179+
operationSetCode: 'MacAppDeveloperSign',
180+
parameters: [{ parameterName: 'Hardening', parameterValue: '--options=runtime' }],
181+
toolName: 'sign',
182+
toolVersion: '1.0'
183+
}];
184+
case 'notarize-darwin':
185+
return [{
186+
keyCode: 'CP-401337-Apple',
187+
operationSetCode: 'MacAppNotarize',
188+
parameters: [],
189+
toolName: 'sign',
190+
toolVersion: '1.0'
191+
}];
192+
case 'nuget':
193+
return [{
194+
keyCode: 'CP-401405',
195+
operationSetCode: 'NuGetSign',
196+
parameters: [],
197+
toolName: 'sign',
198+
toolVersion: '1.0'
199+
}, {
200+
keyCode: 'CP-401405',
201+
operationSetCode: 'NuGetVerify',
202+
parameters: [],
203+
toolName: 'sign',
204+
toolVersion: '1.0'
205+
}];
206+
default:
207+
throw new Error(`Sign type ${type} not found`);
208+
}
209+
>>>>>>> 3175b54dd48 (update sign codes (#234183))
116210
}
117211

118212
export function main([esrpCliPath, type, folderPath, pattern]: string[]) {

0 commit comments

Comments
 (0)