diff --git a/dist/index.js b/dist/index.js index 50ccfad..f411b40 100644 --- a/dist/index.js +++ b/dist/index.js @@ -194,12 +194,12 @@ async function signWithSigntool(fileName) { async function trySignFile(fileName) { console.log(`Signing ${fileName}.`); const extension = path_1.default.extname(fileName); - for (let i = 0; i < 10; i++) { - await sleep(i); + for (let i = 10; i < 20; i++) { if (signtoolFileExtensions.includes(extension)) { if (await signWithSigntool(fileName)) return; } + await sleep(i); } throw `Failed to sign '${fileName}'.`; } diff --git a/index.ts b/index.ts index fa5d2ae..beccf29 100644 --- a/index.ts +++ b/index.ts @@ -88,12 +88,12 @@ async function signWithSigntool(fileName: string) { async function trySignFile(fileName: string) { console.log(`Signing ${fileName}.`); const extension = path.extname(fileName); - for (let i=0; i< 10; i++) { - await sleep(i); + for (let i=10; i< 20; i++) { if (signtoolFileExtensions.includes(extension)) { if (await signWithSigntool(fileName)) return; } + await sleep(i); } throw `Failed to sign '${fileName}'.`; }