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

Function enclosingAppBundlePath

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

Source from the content-addressed store, hash-verified

221const DESKTOP_APP_BUNDLE_IDENTIFIER = "sh.executor.desktop";
222
223const enclosingAppBundlePath = (executablePath: string): string | null => {
224 const match = executablePath.match(/^(.*\.app)\/Contents\//);
225 return match?.[1] ?? null;
226};
227
228const readBundleIdentifier = (appBundlePath: string): string | null => {
229 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected