@@ -68,7 +68,7 @@ extends:
68
68
- task : CmdLine@2
69
69
displayName : VSCE package --pre-release
70
70
inputs :
71
- script : npx @vscode/vsce@latest package --pre-release
71
+ script : npx @vscode/vsce@latest package --pre-release -o extension.vsix
72
72
# ## Copy files for APIScan
73
73
- task : CopyFiles@2
74
74
displayName : " Copy Files for APIScan"
@@ -88,8 +88,41 @@ extends:
88
88
condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
89
89
env :
90
90
AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
91
+ - script : npx @vscode/vsce@latest generate-manifest -i extension.vsix -o extension.manifest
92
+ displayName : ' Generate extension manifest'
93
+ - script : cp extension.manifest extension.signature.p7s
94
+ displayName : ' Prepare manifest for signing'
95
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
96
+ inputs :
97
+ ConnectedServiceName : $(ConnectedServiceName)
98
+ AppRegistrationClientId : $(AppRegistrationClientId)
99
+ AppRegistrationTenantId : $(AppRegistrationTenantId)
100
+ AuthAKVName : $(AuthAKVName)
101
+ AuthCertName : $(AuthCertName)
102
+ AuthSignCertName : $(AuthSignCertName)
103
+ FolderPath : ' .'
104
+ Pattern : ' extension.signature.p7s'
105
+ signConfigType : inlineSignParams
106
+ inlineOperation : |
107
+ [
108
+ {
109
+ "keyCode": "CP-401405",
110
+ "operationSetCode": "VSCodePublisherSign",
111
+ "parameters" : [],
112
+ "toolName": "sign",
113
+ "toolVersion": "1.0"
114
+ }
115
+ ]
116
+ SessionTimeout : 90
117
+ MaxConcurrency : 25
118
+ MaxRetryAttempts : 5
119
+ PendingAnalysisWaitTimeoutMinutes : 5
120
+ displayName : ' Sign extension'
91
121
- task : CopyFiles@2
92
122
displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
93
123
inputs :
94
- Contents : " *.vsix"
124
+ Contents : |
125
+ extension.vsix
126
+ extension.manifest
127
+ extension.signature.p7s
95
128
TargetFolder : $(Build.ArtifactStagingDirectory)
0 commit comments