mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
macOS: Make both notarize() calls consistent
This commit is contained in:
@@ -47,6 +47,14 @@ export async function afterAllArtifactBuild({
|
||||
return;
|
||||
}
|
||||
|
||||
const teamId = process.env.APPLE_TEAM_ID;
|
||||
if (!teamId) {
|
||||
console.warn(
|
||||
'teamId must be provided in environment variable APPLE_TEAM_ID'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const artifactsToStaple = artifactPaths.filter(artifactPath =>
|
||||
/^.*mac-universal.*\.dmg$/.test(artifactPath)
|
||||
);
|
||||
@@ -57,10 +65,12 @@ export async function afterAllArtifactBuild({
|
||||
|
||||
const [dmgPath] = artifactsToStaple;
|
||||
console.log(`Notarizing dmg: ${dmgPath}`);
|
||||
|
||||
await notarize({
|
||||
appBundleId,
|
||||
appPath: dmgPath,
|
||||
appleId,
|
||||
appleIdPassword,
|
||||
teamId,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ export async function afterSign({
|
||||
console.log(` file: ${appPath}`);
|
||||
|
||||
await notarize({
|
||||
tool: 'notarytool',
|
||||
appBundleId,
|
||||
appPath,
|
||||
appleId,
|
||||
appleIdPassword,
|
||||
|
||||
Reference in New Issue
Block a user