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

Function copyNodeExecutable

apps/kimi-code/scripts/native/03-inject.mjs:27–34  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

25}
26
27async function copyNodeExecutable(target) {
28 await mkdir(nativeBinDir(target), { recursive: true });
29 const out = nativeBinPath(target);
30 await copyFile(process.execPath, out);
31 if (process.platform !== 'win32') {
32 await run('chmod', ['755', out]);
33 }
34}
35
36async function removeSignatureIfNeeded(target) {
37 const out = nativeBinPath(target);

Callers 1

runInjectStepFunction · 0.85

Calls 4

nativeBinDirFunction · 0.90
nativeBinPathFunction · 0.90
runFunction · 0.90
mkdirFunction · 0.50

Tested by

no test coverage detected