Merge pull request #46 from vector-im/dbkr/get_appid_from_context

Get the app ID from the cintext
This commit is contained in:
David Baker 2020-03-11 19:25:33 +00:00 committed by GitHub
commit 093a2bb4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ const { notarize } = require('electron-notarize');
exports.default = async function(context) { exports.default = async function(context) {
const { electronPlatformName, appOutDir } = context; const { electronPlatformName, appOutDir } = context;
const appId = context.packager.info.appInfo.id;
if (electronPlatformName === 'darwin') { if (electronPlatformName === 'darwin') {
const appName = context.packager.appInfo.productFilename; 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."); console.log("Notarising macOS app. This may be some time.");
return await notarize({ return await notarize({
appBundleId: 'im.riot.app', appBundleId: appId,
appPath: `${appOutDir}/${appName}.app`, appPath: `${appOutDir}/${appName}.app`,
appleId: userId, appleId: userId,
appleIdPassword: '@keychain:NOTARIZE_CREDS', appleIdPassword: '@keychain:NOTARIZE_CREDS',