Skip to content

Commit

Permalink
fix: skip codesign check on pkg and dmg files (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca authored Feb 15, 2024
1 parent 571ebac commit df2d00d
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 df2d00d

Please sign in to comment.