Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions config/electron-builder.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,14 @@ const macUsageDescriptions = {
NSBonjourServices: ['_http._tcp', '_https._tcp'],
...MACOS_FOLDER_USAGE_DESCRIPTIONS
}
// Developer ID team that signs every release-channel mac build.
const ORCA_MAC_TEAM_ID = '6CX3WHS9HZ'
/** The Developer ID team the fork's release credentials sign with; a release build must name one. */
function readReleaseMacTeamId() {
const teamId = process.env.APPLE_TEAM_ID?.trim()
if (!teamId) {
throw new Error('APPLE_TEAM_ID is required for a macOS release build.')
}
return teamId
}

/** @type {import('electron-builder').Configuration} */
module.exports = {
Expand Down Expand Up @@ -836,7 +842,7 @@ async function packageMacTerminalHost(appPath, context) {
appPath,
arch,
usageDescriptions: macUsageDescriptions,
expectedTeamId: isMacRelease ? ORCA_MAC_TEAM_ID : null
expectedTeamId: isMacRelease ? readReleaseMacTeamId() : null
})
}

Expand Down
Loading