mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 00:03:20 +00:00
fix(macos): declare app data privacy purpose
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user