From df2d00d24fe86cad36b76901ea5cab0ee1f91eed Mon Sep 17 00:00:00 2001 From: JonLuca De Caro Date: Thu, 15 Feb 2024 01:20:44 -0800 Subject: [PATCH] fix: skip codesign check on pkg and dmg files (#172) --- src/check-signature.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/check-signature.ts b/src/check-signature.ts index 1dfec7f..8730187 100644 --- a/src/check-signature.ts +++ b/src/check-signature.ts @@ -25,6 +25,11 @@ const codesign = async (opts: NotarizeStapleOptions) => { return result; }; export async function checkSignatures(opts: NotarizeStapleOptions): Promise { + const fileExt = path.extname(opts.appPath); + if (fileExt === '.dmg' || fileExt === '.pkg') { + d('skipping codesign check for dmg or pkg file'); + return; + } const [codesignResult, codesignInfo] = await Promise.all([codesign(opts), codesignDisplay(opts)]); let error = '';