Files
orca/config/scripts/macos-package-bundle-identifiers.mjs
T

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
}