mirror of https://github.com/laurent22/joplin.git
Tools: Make sure notarization does not make Travis timeout the task
parent
95f59a67ea
commit
99445cac27
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue