From 4f52977266d6ed9f3ed774940eb1677fad880acf Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Thu, 12 Sep 2024 22:38:46 -0700 Subject: [PATCH] allow retry for signtool when fails to find certificate (signtool.exe seems flaky) --- .../app-builder-lib/src/codeSign/windowsSignToolManager.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/app-builder-lib/src/codeSign/windowsSignToolManager.ts b/packages/app-builder-lib/src/codeSign/windowsSignToolManager.ts index 1e5651978b2..8dbfc0708a5 100644 --- a/packages/app-builder-lib/src/codeSign/windowsSignToolManager.ts +++ b/packages/app-builder-lib/src/codeSign/windowsSignToolManager.ts @@ -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 }