fix code signing step for non-Store macOS build

This commit is contained in:
Christopher Willis-Ford 2020-01-16 12:35:37 -08:00
parent 9c9d7c6979
commit ccaca91bea

View file

@ -69,8 +69,10 @@ const calculateTargets = function () {
// run in two passes so we can skip signing the appx
return ['nsis', 'appx'];
case 'darwin':
// run in one pass for slightly better speed
return ['dmg mas'];
// 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'];
}
throw new Error(`Could not determine targets for platform: ${process.platform}`);
};