mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Switch to notarytool (#440)
This commit is contained in:
parent
c9b0a0866b
commit
7a8e5b6f00
@ -7,16 +7,14 @@ exports.default = async function(context) {
|
|||||||
|
|
||||||
if (electronPlatformName === 'darwin') {
|
if (electronPlatformName === 'darwin') {
|
||||||
const appName = context.packager.appInfo.productFilename;
|
const appName = context.packager.appInfo.productFilename;
|
||||||
// We get the password from keychain. The keychain stores
|
|
||||||
// user IDs too, but apparently altool can't get the user ID
|
const keychainProfile = process.env.NOTARIZE_KEYCHAIN_PROFILE;
|
||||||
// from the keychain, so we need to get it from the environment.
|
if (keychainProfile === undefined) {
|
||||||
const userId = process.env.NOTARIZE_APPLE_ID;
|
|
||||||
if (userId === undefined) {
|
|
||||||
if (!warned) {
|
if (!warned) {
|
||||||
console.log("*************************************");
|
console.log("*****************************************");
|
||||||
console.log("* NOTARIZE_APPLE_ID is not set. *");
|
console.log("* NOTARIZE_KEYCHAIN_PROFILE is not set. *");
|
||||||
console.log("* This build will NOT be notarised. *");
|
console.log("* This build will NOT be notarised. *");
|
||||||
console.log("*************************************");
|
console.log("*****************************************");
|
||||||
warned = true;
|
warned = true;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -24,10 +22,11 @@ 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({
|
||||||
|
tool: "notarytool",
|
||||||
appBundleId: appId,
|
appBundleId: appId,
|
||||||
appPath: `${appOutDir}/${appName}.app`,
|
appPath: `${appOutDir}/${appName}.app`,
|
||||||
appleId: userId,
|
keychainProfile,
|
||||||
appleIdPassword: '@keychain:NOTARIZE_CREDS',
|
keychain: process.env.NOTARIZE_KEYCHAIN,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user