MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / enclosingAppBundlePath

Function enclosingAppBundlePath

apps/cli/src/service.ts:234–237  ·  view source on GitHub ↗
(executablePath: string)

Source from the content-addressed store, hash-verified

232const DESKTOP_APP_BUNDLE_IDENTIFIER = "sh.executor.desktop";
233
234const enclosingAppBundlePath = (executablePath: string): string | null => {
235 const match = executablePath.match(/^(.*\.app)\/Contents\//);
236 return match?.[1] ?? null;
237};
238
239const readBundleIdentifier = (appBundlePath: string): string | null => {
240 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected