MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_macos_adhoc_sign

Function cbm_macos_adhoc_sign

src/cli/cli.c:3022–3030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3020
3021#ifdef __APPLE__
3022static int cbm_macos_adhoc_sign(const char *binary_path) {
3023 /* Remove quarantine xattr (best effort — may not exist) */
3024 const char *xattr_argv[] = {"xattr", "-d", "com.apple.quarantine", binary_path, NULL};
3025 (void)cbm_exec_no_shell(xattr_argv);
3026
3027 /* Ad-hoc sign (required for arm64, harmless for x86_64) */
3028 const char *sign_argv[] = {"codesign", "--sign", "-", "--force", binary_path, NULL};
3029 return cbm_exec_no_shell(sign_argv);
3030}
3031#endif
3032
3033/* ── Kill other MCP server instances ──────────────────────────── */

Callers 2

cbm_cmd_installFunction · 0.85
cbm_cmd_updateFunction · 0.85

Calls 1

cbm_exec_no_shellFunction · 0.85

Tested by

no test coverage detected