Skip to content

Commit ccaca91

Browse files
author
Christopher Willis-Ford
committed
fix code signing step for non-Store macOS build
1 parent 9c9d7c6 commit ccaca91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/electron-builder-wrapper.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ const calculateTargets = function () {
6969
// run in two passes so we can skip signing the appx
7070
return ['nsis', 'appx'];
7171
case 'darwin':
72-
// run in one pass for slightly better speed
73-
return ['dmg mas'];
72+
// Running 'dmg' and 'mas' in the same pass causes electron-builder to skip signing the non-MAS app copy.
73+
// Running them as separate passes means they both get signed.
74+
// Seems like a bug in electron-builder...
75+
return ['dmg', 'mas'];
7476
}
7577
throw new Error(`Could not determine targets for platform: ${process.platform}`);
7678
};

0 commit comments

Comments
 (0)