@@ -78,7 +78,7 @@ extends:
78
78
- bash : |
79
79
npx json@latest -I -f package.json -e "this.version=this.version.substring(0, this.version.lastIndexOf('.'))+\".$(date -u +'%Y%m%d%H')\""
80
80
displayName: Update patch version in package.json
81
- - script : ' npx @vscode/vsce@latest package --pre-release'
81
+ - script : ' npx @vscode/vsce@latest package --pre-release -o extension.vsix '
82
82
displayName : ' package vsix'
83
83
# ## Copy files for APIScan
84
84
- task : CopyFiles@2
@@ -99,8 +99,41 @@ extends:
99
99
condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
100
100
env :
101
101
AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
102
+ - script : npx @vscode/vsce@latest generate-manifest -i extension.vsix -o extension.manifest
103
+ displayName : ' Generate extension manifest'
104
+ - script : cp extension.manifest extension.signature.p7s
105
+ displayName : ' Prepare manifest for signing'
106
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
107
+ inputs :
108
+ ConnectedServiceName : $(EsrpConnectionServiceName)
109
+ AppRegistrationClientId : $(AppRegistrationClientId)
110
+ AppRegistrationTenantId : $(AppRegistrationTenantId)
111
+ AuthAKVName : $(AuthAKVName)
112
+ AuthCertName : $(AuthCertName)
113
+ AuthSignCertName : $(AuthSignCertName)
114
+ FolderPath : ' .'
115
+ Pattern : ' extension.signature.p7s'
116
+ signConfigType : inlineSignParams
117
+ inlineOperation : |
118
+ [
119
+ {
120
+ "keyCode": "CP-401405",
121
+ "operationSetCode": "VSCodePublisherSign",
122
+ "parameters" : [],
123
+ "toolName": "sign",
124
+ "toolVersion": "1.0"
125
+ }
126
+ ]
127
+ SessionTimeout : 90
128
+ MaxConcurrency : 25
129
+ MaxRetryAttempts : 5
130
+ PendingAnalysisWaitTimeoutMinutes : 5
131
+ displayName : ' Sign extension'
102
132
- task : CopyFiles@2
103
133
displayName : ' Copy Files to: $(Build.ArtifactStagingDirectory)'
104
134
inputs :
105
- Contents : ' *.vsix'
135
+ Contents : |
136
+ extension.vsix
137
+ extension.manifest
138
+ extension.signature.p7s
106
139
TargetFolder : ' $(Build.ArtifactStagingDirectory)'
0 commit comments