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',