From fde2c2da4bf208e3e856e51b3e4b4af668c644f9 Mon Sep 17 00:00:00 2001 From: Mavrik Date: Thu, 2 Mar 2023 22:16:26 +0000 Subject: [PATCH] fix: add osxSign, and osxNotarize for production builds --- .env.example | 5 ++++- forge.config.js | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 00cd7234..e02d83a6 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,5 @@ PORT= -ELECTRON_START_URL= \ No newline at end of file +ELECTRON_START_URL= +APPLE_ID=YOUR-APPLE-ID +APPLE_PASSWORD=APP-SPECIFIC-PASSWORD +APPLE_TEAM_ID=YOUR-TEAM-ID \ No newline at end of file diff --git a/forge.config.js b/forge.config.js index 38c836a0..4948a5c9 100644 --- a/forge.config.js +++ b/forge.config.js @@ -1,7 +1,20 @@ +// eslint-disable-next-line no-undef,@typescript-eslint/no-var-requires +require('dotenv').config() + // eslint-disable-next-line no-undef module.exports = { packagerConfig: { icon: 'src/assets/images/sigma', // no file extension required + osxSign: {}, + osxNotarize: { + tool: 'notarytool', + // eslint-disable-next-line no-undef + appleId: process.env.APPLE_ID, + // eslint-disable-next-line no-undef + appleIdPassword: process.env.APPLE_PASSWORD, + // eslint-disable-next-line no-undef + teamId: process.env.APPLE_TEAM_ID, + }, }, rebuildConfig: {}, makers: [