mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Merge pull request #46 from vector-im/dbkr/get_appid_from_context
Get the app ID from the cintext
This commit is contained in:
commit
093a2bb4a4
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user