mirror of
https://github.com/stablyai/orca.git
synced 2026-10-26 00:03:55 +00:00
build(macos): use a distinct bundle id for local packaging
Local 'pnpm build' carried the release appId com.stablyai.orca under a different (ad-hoc/local) signature; macOS TCC keys grants to bundle id + signature, so local builds collided with and corrupted the installed release's grant identity. Non-release packaging now uses com.stablyai.orca.local, gated on ORCA_MAC_RELEASE — the same env that enables release signing — so release artifacts are byte-identical. Knock-ons covered: sidecar peer-trust allowlist, notification-status sidecar bundle id, and the notification settings deep-link now trusts the launchd-provided id. Refs #9756
This commit is contained in:
@@ -3603,9 +3603,11 @@ private func isTrustedOrcaApplication(_ pid: pid_t) -> Bool {
|
||||
else {
|
||||
return false
|
||||
}
|
||||
// Why: dev validation runs from per-worktree wrapper apps with stable
|
||||
// Orca-owned bundle ids; the sidecar peer check must still authorize them.
|
||||
// Why: dev validation runs from per-worktree wrapper apps and local
|
||||
// packaging uses its own bundle id (#9756); the sidecar peer check must
|
||||
// still authorize these Orca-owned identities.
|
||||
return bundleId == "com.stablyai.orca" ||
|
||||
bundleId == "com.stablyai.orca.local" ||
|
||||
bundleId.hasPrefix("com.stablyai.orca.dev.") ||
|
||||
bundleId == "com.github.Electron"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user