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