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

Function buildCodesignArgs

apps/kimi-code/scripts/native/04-sign.mjs:11–29  ·  view source on GitHub ↗
({ identity, executable, entitlementsPath, keychainPath })

Source from the content-addressed store, hash-verified

9const ENTITLEMENTS_PATH = resolve(import.meta.dirname, 'entitlements.plist');
10
11export function buildCodesignArgs({ identity, executable, entitlementsPath, keychainPath }) {
12 if (identity === '-') {
13 return ['--sign', '-', executable];
14 }
15 const args = [
16 '--sign',
17 identity,
18 '--options',
19 'runtime',
20 '--entitlements',
21 entitlementsPath,
22 '--timestamp',
23 ];
24 if (keychainPath) {
25 args.push('--keychain', keychainPath);
26 }
27 args.push('--force', executable);
28 return args;
29}
30
31async function sha256(path) {
32 return await new Promise((resolveHash, reject) => {

Callers 2

sign-args.test.tsFile · 0.90
runSignStepFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected