mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-11 11:12:03 +02:00
Tools: Make sure notarization does not make Travis timeout the task
This commit is contained in:
parent
95f59a67ea
commit
99445cac27
@ -45,6 +45,13 @@ module.exports = async function(params) {
|
|||||||
|
|
||||||
console.log(`Notarizing ${appId} found at ${appPath}`);
|
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({
|
await electron_notarize.notarize({
|
||||||
appBundleId: appId,
|
appBundleId: appId,
|
||||||
appPath: appPath,
|
appPath: appPath,
|
||||||
@ -66,6 +73,8 @@ module.exports = async function(params) {
|
|||||||
ascProvider: process.env.APPLE_ASC_PROVIDER,
|
ascProvider: process.env.APPLE_ASC_PROVIDER,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
clearInterval(waitingIntervalId);
|
||||||
|
|
||||||
// It appears that electron-notarize doesn't staple the app, but without
|
// It appears that electron-notarize doesn't staple the app, but without
|
||||||
// this we were still getting the malware warning when launching the app.
|
// this we were still getting the malware warning when launching the app.
|
||||||
// Stapling the app means attaching the notarization ticket to it, so that
|
// Stapling the app means attaching the notarization ticket to it, so that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user