File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -222,8 +222,22 @@ function CreateSource($version)
222
222
223
223
function SignFiles ($files )
224
224
{
225
- & $env: SignTool sign / f $env: KeyFile / p " $env: CertPassword " / tr http:// sha256timestamp.ws.symantec.com / sha256/ timestamp / td sha256 / fd sha256 $files
226
- CheckExitCode " Failed to sign files."
225
+ foreach ($file in $files )
226
+ {
227
+ for ($i = 0 ; $i -le 10 ; $i ++ )
228
+ {
229
+ Start-Sleep - s $i
230
+ & $env: SignTool sign / f $env: KeyFile / p " $env: CertPassword " / tr http:// sha256timestamp.ws.symantec.com / sha256/ timestamp / td sha256 / fd sha256 $file
231
+ if ($LastExitCode -eq 0 )
232
+ {
233
+ break
234
+ }
235
+ }
236
+ if ($LastExitCode -ne 0 )
237
+ {
238
+ throw " Failed to sign files."
239
+ }
240
+ }
227
241
}
228
242
229
243
$platform = $args [0 ]
You can’t perform that action at this time.
0 commit comments