Skip to content

Commit

Permalink
allow retry for signtool when fails to find certificate (signtool.exe…
Browse files Browse the repository at this point in the history
… seems flaky)
  • Loading branch information
mmaietta committed Sep 13, 2024
1 parent 31eee78 commit 4f52977
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ export class WindowsSignToolManager {
10000,
0,
(e: any) => {
if (e.message.includes("The file is being used by another process") || e.message.includes("The specified timestamp server either could not be reached")) {
if (
e.message.includes("The file is being used by another process") ||
e.message.includes("The specified timestamp server either could not be reached" || e.message.includes("No certificates were found that met all the given criteria."))
) {
log.warn(`Attempt to code sign failed, another attempt will be made in 15 seconds: ${e.message}`)
return true
}
Expand Down

0 comments on commit 4f52977

Please sign in to comment.