desktop-release: a DMG notarization without an answer (notarytool killed or timed out) says so instead of an empty reason
This commit is contained in:
parent
12b01f065c
commit
8c7274edcc
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ async function mac(argv: string[]): Promise<void> {
|
|||
say('notarytool submit (DMG), waiting for Apple');
|
||||
const n = run(['xcrun', 'notarytool', 'submit', dmg, '--key', notary!.APPLE_API_KEY_PATH!, '--key-id', notary!.APPLE_API_KEY!, '--issuer', notary!.APPLE_API_ISSUER!, '--wait', '--output-format', 'json'], { allowFail: true, timeout: 3_600_000 });
|
||||
const status = (() => { try { return (JSON.parse(n.out) as { status?: string }).status; } catch { return undefined; } })();
|
||||
if (status !== 'Accepted') fail(`notarization of the DMG: ${status ?? n.err.trim()}`);
|
||||
if (status !== 'Accepted') fail(`notarization of the DMG: ${status ?? (n.err.trim() || n.out.trim() || `notarytool exited ${n.code} without an answer (killed or timed out): run again; xcrun notarytool history shows the submission`)}`);
|
||||
run(['xcrun', 'stapler', 'staple', dmg]);
|
||||
run(['xcrun', 'stapler', 'validate', dmg]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue