From 52cf815d7e44bd2b65917e295e47f39feccb4876 Mon Sep 17 00:00:00 2001 From: JonLuca DeCaro Date: Wed, 8 Nov 2023 14:04:56 -0800 Subject: [PATCH] chore: resolve comments --- .gitignore | 1 - src/index.ts | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 82992f0..3dc0812 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ node_modules lib *.log src/example.ts -.idea diff --git a/src/index.ts b/src/index.ts index d7d6a9f..74ae57d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,6 +15,9 @@ export { NotarizeOptions }; export { validateLegacyAuthorizationArgs as validateAuthorizationArgs } from './validate-args'; export async function notarize({ appPath, ...otherOptions }: NotarizeOptions) { + + await checkSignatures({ appPath }); + if (otherOptions.tool === 'legacy') { console.warn( 'Notarizing using the legacy altool system. The altool system will be disabled on November 1 2023. Please switch to the notarytool system before then.', @@ -51,8 +54,6 @@ export async function notarize({ appPath, ...otherOptions }: NotarizeOptions) { } as NotaryToolStartOptions); } - await checkSignatures({ appPath }); - await retry(() => stapleApp({ appPath }), { retries: 3, });