fix(macos): declare app data privacy purpose

This commit is contained in:
Brennan Benson
2026-07-22 12:46:20 -07:00
parent 09f083da99
commit 9212415ec6
2 changed files with 3 additions and 0 deletions
@@ -8,6 +8,8 @@ const { join } = require('node:path')
// the effective requesting app and needs the same strings as the main app —
// otherwise TCC denies with a silent EPERM and no dialog (#9756).
const macPrivacyUsageDescriptions = {
NSAppDataUsageDescription:
"Orca allows terminal-launched developer tools to access other apps' data when you request it.",
NSAppleEventsUsageDescription:
'Orca allows terminal-launched developer tools to automate local apps when you request it.',
NSBluetoothAlwaysUsageDescription:
@@ -101,6 +101,7 @@ describe('electron-builder config', () => {
// Why: the detached PTY daemon runs inside the Electron helper bundle, so the
// helper needs the same TCC usage descriptions as the main app (#9756).
it('keeps the main-app extendInfo privacy strings in the shared helper-bundle map', () => {
expect(macPrivacyUsageDescriptions.NSAppDataUsageDescription).toBeTruthy()
expect(electronBuilderConfig.mac.extendInfo).toMatchObject(macPrivacyUsageDescriptions)
const extendInfoUsageKeys = Object.keys(electronBuilderConfig.mac.extendInfo).filter((key) =>
key.endsWith('UsageDescription')