Tools: Make sure notarization does not make Travis timeout the task

pull/4436/head
Laurent Cozic 2021-01-27 22:11:40 +00:00
parent 95f59a67ea
commit 99445cac27
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,13 @@ module.exports = async function(params) {
console.log(`Notarizing ${appId} found at ${appPath}`);
// Every x seconds we print something to stdout, otherwise Travis will
// timeout the task after 10 minutes, and Apple notarization can take more
// time.
const waitingIntervalId = setInterval(() => {
console.log('.');
}, 60000);
await electron_notarize.notarize({
appBundleId: appId,
appPath: appPath,
@ -66,6 +73,8 @@ module.exports = async function(params) {
ascProvider: process.env.APPLE_ASC_PROVIDER,
});
clearInterval(waitingIntervalId);
// It appears that electron-notarize doesn't staple the app, but without
// this we were still getting the malware warning when launching the app.
// Stapling the app means attaching the notarization ticket to it, so that