Skip to content

Commit

Permalink
fix: skip codesign check on pkg and dmg files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Nov 22, 2023
1 parent 83f6f8e commit 55a1ae8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/check-signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ const codesign = async (opts: NotarizeStapleOptions) => {
return result;
};
export async function checkSignatures(opts: NotarizeStapleOptions): Promise<void> {
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 = '';

Expand Down

0 comments on commit 55a1ae8

Please sign in to comment.