Get the app ID from the cintext

So we can use the right app ID for nightly
This commit is contained in:
David Baker 2020-03-11 19:21:14 +00:00
parent 1dd7c168cf
commit 8b9314cc0d

View File

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