From d7f579353e2b98ac7ff579d73fba3500c5a04f68 Mon Sep 17 00:00:00 2001 From: Daniel McAssey Date: Tue, 8 Feb 2022 11:43:46 +0000 Subject: [PATCH] fix: make notary tool file extension agnostic Make Notary Tool file extension agnostic, no need to assume .app extension, for example we may want to notarize .pkg or .dmg --- src/notarytool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notarytool.ts b/src/notarytool.ts index 9c8250b..b887d22 100644 --- a/src/notarytool.ts +++ b/src/notarytool.ts @@ -45,7 +45,7 @@ export async function isNotaryToolAvailable() { export async function notarizeAndWaitForNotaryTool(opts: NotaryToolStartOptions) { d('starting notarize process for app:', opts.appPath); return await withTempDir(async dir => { - const zipPath = path.resolve(dir, `${path.basename(opts.appPath, '.app')}.zip`); + const zipPath = path.resolve(dir, `${path.parse(opts.appPath).name}.zip`); d('zipping application to:', zipPath); const zipResult = await spawn( 'ditto',