@@ -83,9 +83,9 @@ extends:
83
83
inputs :
84
84
script : npx json@9.0.6 -I -f package.json -e "this.aiKey=\"%AI_KEY%\""
85
85
- task : CmdLine@2
86
- displayName : vsce package --pre-release
86
+ displayName : vsce package --pre-release -o extension.vsix
87
87
inputs :
88
- script : npx @vscode/vsce@latest package --pre-release
88
+ script : npx @vscode/vsce@latest package --pre-release -o extension.vsix
89
89
# ## Copy files for APIScan
90
90
- task : CopyFiles@2
91
91
displayName : " Copy Files for APIScan"
@@ -105,8 +105,41 @@ extends:
105
105
condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
106
106
env :
107
107
AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
108
+ - script : npx @vscode/vsce@latest generate-manifest -i extension.vsix -o extension.manifest
109
+ displayName : ' Generate extension manifest'
110
+ - script : cp extension.manifest extension.signature.p7s
111
+ displayName : ' Prepare manifest for signing'
112
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
113
+ inputs :
114
+ ConnectedServiceName : $(ConnectedServiceName)
115
+ AppRegistrationClientId : $(AppRegistrationClientId)
116
+ AppRegistrationTenantId : $(AppRegistrationTenantId)
117
+ AuthAKVName : $(AuthAKVName)
118
+ AuthCertName : $(AuthCertName)
119
+ AuthSignCertName : $(AuthSignCertName)
120
+ FolderPath : ' .'
121
+ Pattern : ' extension.signature.p7s'
122
+ signConfigType : inlineSignParams
123
+ inlineOperation : |
124
+ [
125
+ {
126
+ "keyCode": "CP-401405",
127
+ "operationSetCode": "VSCodePublisherSign",
128
+ "parameters" : [],
129
+ "toolName": "sign",
130
+ "toolVersion": "1.0"
131
+ }
132
+ ]
133
+ SessionTimeout : 90
134
+ MaxConcurrency : 25
135
+ MaxRetryAttempts : 5
136
+ PendingAnalysisWaitTimeoutMinutes : 5
137
+ displayName : ' Sign extension'
108
138
- task : CopyFiles@2
109
139
displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)/vsix"
110
140
inputs :
111
- Contents : " *.vsix"
141
+ Contents : |
142
+ extension.vsix
143
+ extension.manifest
144
+ extension.signature.p7s
112
145
TargetFolder : $(Build.ArtifactStagingDirectory)/vsix
0 commit comments