Tools: Exit with error code 1 when macOS notarization fails

pull/5124/head
Laurent Cozic 2021-06-23 15:27:06 +01:00
parent 96931877cf
commit 6cbdad0690
1 changed files with 22 additions and 17 deletions

View File

@ -56,6 +56,7 @@ module.exports = async function(params) {
console.log('.');
}, 60000);
try {
await electron_notarize.notarize({
appBundleId: appId,
appPath: appPath,
@ -76,6 +77,10 @@ module.exports = async function(params) {
// xcrun altool --list-providers -u APPLE_ID -p APPLE_ID_PASSWORD
ascProvider: process.env.APPLE_ASC_PROVIDER,
});
} catch (error) {
console.error(error);
process.exit(1);
}
clearInterval(waitingIntervalId);