mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 00:03:45 +00:00
23 lines
781 B
JavaScript
23 lines
781 B
JavaScript
export const MACOS_RELEASE_APP_BUNDLE_ID = 'com.stablyai.orca'
|
|
export const MACOS_LOCAL_APP_BUNDLE_ID = 'com.stablyai.orca.local'
|
|
|
|
export function resolveMacosPackageBundleIdentifiers(env = process.env) {
|
|
const appBundleId =
|
|
env.ORCA_MAC_RELEASE === '1' ? MACOS_RELEASE_APP_BUNDLE_ID : MACOS_LOCAL_APP_BUNDLE_ID
|
|
return {
|
|
appBundleId,
|
|
computerUseBundleId: `${appBundleId}.computer-use`
|
|
}
|
|
}
|
|
|
|
export function resolveMacosComputerUseBundleId(env = process.env) {
|
|
return (
|
|
env.ORCA_COMPUTER_MACOS_BUNDLE_ID ??
|
|
resolveMacosPackageBundleIdentifiers(env).computerUseBundleId
|
|
)
|
|
}
|
|
|
|
export function resolveMacosNotificationStatusBundleId(explicitBundleId, env = process.env) {
|
|
return explicitBundleId ?? resolveMacosPackageBundleIdentifiers(env).appBundleId
|
|
}
|