From 53f7c5f57700a4b225dce11d306cdc8db7b8c891 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Wed, 13 May 2020 17:32:30 -0700 Subject: [PATCH] swap MAS and DMG build order --- scripts/electron-builder-wrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/electron-builder-wrapper.js b/scripts/electron-builder-wrapper.js index a6fb573..5bdd600 100644 --- a/scripts/electron-builder-wrapper.js +++ b/scripts/electron-builder-wrapper.js @@ -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 them as separate passes means they both get signed. // 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}`); };