2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

build(macOS): add flag for notarization

This commit is contained in:
18alantom 2021-12-10 15:23:54 +05:30 committed by Alan
parent 89cbc1c6c7
commit 1dac832391

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;
}