MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runSignStep

Function runSignStep

apps/kimi-code/scripts/native/04-sign.mjs:46–62  ·  view source on GitHub ↗
({ identity = '-', keychainPath = null } = {})

Source from the content-addressed store, hash-verified

44}
45
46export async function runSignStep({ identity = '-', keychainPath = null } = {}) {
47 const target = targetTriple();
48 const executable = nativeBinPath(target);
49
50 if (process.platform === 'darwin') {
51 const args = buildCodesignArgs({
52 identity,
53 executable,
54 entitlementsPath: ENTITLEMENTS_PATH,
55 keychainPath,
56 });
57 await run('codesign', args);
58 }
59
60 await writeChecksum(executable);
61 console.log(`Signed and hashed: ${executable}`);
62}
63
64if (import.meta.url === `file://${process.argv[1]}`) {
65 const identity = process.env.APPLE_SIGNING_IDENTITY ?? '-';

Callers 2

build.mjsFile · 0.90
04-sign.mjsFile · 0.85

Calls 6

targetTripleFunction · 0.90
nativeBinPathFunction · 0.90
runFunction · 0.90
buildCodesignArgsFunction · 0.85
writeChecksumFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected