build(macOS): add flag for notarization

This commit is contained in:
18alantom
2021-12-13 15:00:59 +05:30
committed by Alan
parent 89cbc1c6c7
commit 1dac832391
+4 -1
View File
@@ -2,7 +2,10 @@ const { notarize } = require('electron-notarize');
exports.default = async (context) => {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
if (
electronPlatformName !== 'darwin' ||
!parseInt(process.env.APPLE_NOTARIZE)
) {
return;
}