From 69be52cf9e4516a51a75de722763043903be94ac Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Wed, 13 Sep 2023 18:09:59 +0530 Subject: [PATCH] chore: electron notarization for mac --- packages/bruno-electron/electron-builder-config.js | 3 ++- packages/bruno-electron/notarize.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/bruno-electron/electron-builder-config.js b/packages/bruno-electron/electron-builder-config.js index 504f49d9b..f7b1c5abc 100644 --- a/packages/bruno-electron/electron-builder-config.js +++ b/packages/bruno-electron/electron-builder-config.js @@ -1,4 +1,4 @@ -require('dotenv').config({ path: process.env.DOTENV_PATH }) +require('dotenv').config({ path: process.env.DOTENV_PATH }); const config = { "appId": "com.usebruno.app", @@ -11,6 +11,7 @@ const config = { "files": [ "**/*" ], + "afterSign": "notarize.js", "mac": { "artifactName": "${name}_${version}_${arch}_${os}.${ext}", "category": "public.app-category.developer-tools", diff --git a/packages/bruno-electron/notarize.js b/packages/bruno-electron/notarize.js index c620cff94..d76c3624e 100644 --- a/packages/bruno-electron/notarize.js +++ b/packages/bruno-electron/notarize.js @@ -1,4 +1,4 @@ -require('dotenv').config(); +require('dotenv').config({ path: process.env.DOTENV_PATH }); const fs = require('fs'); const path = require('path'); const electron_notarize = require('electron-notarize');