MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / writeScriptMeta

Function writeScriptMeta

src/core/cocos3x/engine3x.js:801–812  ·  view source on GitHub ↗
(scriptPath)

Source from the content-addressed store, hash-verified

799 await copyFile(src, dest);
800 await writeScriptMeta(dest);
801 if (verbose) logger.debug(`Script: ${label}`);
802 });
803
804 // Preserve top-level bootstrap scripts under _boot/.
805 const bootFiles = [
806 'main.js', 'game.js', 'game.json', 'ccRequire.js',
807 'adapter-min.js', 'physics-min.js',
808 ];
809 const bootOut = path.join(outputPath, '_boot');
810 for (const name of bootFiles) {
811 const src = path.join(sourcePath, name);
812 if (fs.existsSync(src)) {
813 await mkdir(bootOut, { recursive: true });
814 await copyFile(src, path.join(bootOut, name));
815 }

Callers 1

recoverScriptsFunction · 0.85

Calls 1

writeFileFunction · 0.50

Tested by

no test coverage detected