Skip to content

Commit df2d00d

Browse files
authoredFeb 15, 2024
fix: skip codesign check on pkg and dmg files (#172)
1 parent 571ebac commit df2d00d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/check-signature.ts

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ const codesign = async (opts: NotarizeStapleOptions) => {
2525
return result;
2626
};
2727
export async function checkSignatures(opts: NotarizeStapleOptions): Promise<void> {
28+
const fileExt = path.extname(opts.appPath);
29+
if (fileExt === '.dmg' || fileExt === '.pkg') {
30+
d('skipping codesign check for dmg or pkg file');
31+
return;
32+
}
2833
const [codesignResult, codesignInfo] = await Promise.all([codesign(opts), codesignDisplay(opts)]);
2934
let error = '';
3035

0 commit comments

Comments
 (0)