swap MAS and DMG build order

This commit is contained in:
Christopher Willis-Ford 2020-05-13 17:32:30 -07:00
parent 89193bc6af
commit 53f7c5f577

View file

@ -82,7 +82,8 @@ const calculateTargets = function () {
// Running 'dmg' and 'mas' in the same pass causes electron-builder to skip signing the non-MAS app copy. // Running 'dmg' and 'mas' in the same pass causes electron-builder to skip signing the non-MAS app copy.
// Running them as separate passes means they both get signed. // Running them as separate passes means they both get signed.
// Seems like a bug in electron-builder... // Seems like a bug in electron-builder...
return ['dmg', 'mas']; // Running the 'mas' build first means that its output is available while we wait for 'dmg' notarization.
return ['mas', 'dmg'];
} }
throw new Error(`Could not determine targets for platform: ${process.platform}`); throw new Error(`Could not determine targets for platform: ${process.platform}`);
}; };