From 8b9314cc0db4f3afa008e02444e8159a0ec272c4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 11 Mar 2020 19:21:14 +0000 Subject: [PATCH] Get the app ID from the cintext So we can use the right app ID for nightly --- scripts/electron_afterSign.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/electron_afterSign.js b/scripts/electron_afterSign.js index 5307eaa..100a4c7 100644 --- a/scripts/electron_afterSign.js +++ b/scripts/electron_afterSign.js @@ -2,6 +2,7 @@ const { notarize } = require('electron-notarize'); exports.default = async function(context) { const { electronPlatformName, appOutDir } = context; + const appId = context.packager.info.appInfo.id; if (electronPlatformName === 'darwin') { const appName = context.packager.appInfo.productFilename; @@ -19,7 +20,7 @@ exports.default = async function(context) { console.log("Notarising macOS app. This may be some time."); return await notarize({ - appBundleId: 'im.riot.app', + appBundleId: appId, appPath: `${appOutDir}/${appName}.app`, appleId: userId, appleIdPassword: '@keychain:NOTARIZE_CREDS',