From 2ff01253bd049b009706580ff80cce60eab6c165 Mon Sep 17 00:00:00 2001 From: Mavrik Date: Thu, 2 Mar 2023 22:15:49 +0000 Subject: [PATCH 1/2] feat: added dotenv for config file env variables --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 299b57ad..e730b2ee 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "axios": "^0.27.2", "bootstrap-icons": "^1.9.1", "chart.js": "^4.2.0", + "dotenv": "^16.0.3", "concurrently": "5.2.0", "electron-is-dev": "^2.0.0", "electron-squirrel-startup": "^1.0.0", From 2c9cbd0fb4801614cd6f10a11f3153eb77f6b244 Mon Sep 17 00:00:00 2001 From: Mavrik Date: Thu, 2 Mar 2023 22:16:26 +0000 Subject: [PATCH 2/2] 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: [