Files
youle_cocos/out/single-game-bundle-probe-20260909/project/extensions/probe-build/hooks.js
T
joywayer 35216f75e7 feat: integrate room framework and isolated subgame bundles
Complete room UI and protocol integration, move game definitions and resources behind bundle entries, publish authoritative version XML, and document single-game builds. Include all current resource changes and experiment artifacts.
2026-09-09 03:13:18 +08:00

8 lines
529 B
JavaScript

const fs=require('fs'),path=require('path');exports.throwError=true;
exports.onAfterBuild=(options,result)=>{const key=options.outputName.endsWith('beta')?'beta':'alpha';
fs.writeFileSync(path.join(result.paths.output,'target.json'),JSON.stringify({bundle:'game-'+key,entry:'ProbeEntry_'+key,otherEntry:'ProbeEntry_'+(key==='alpha'?'beta':'alpha')}));
fs.writeFileSync(path.join(result.paths.output,'probe-build.json'),JSON.stringify({bundles:result.settings.assets.projectBundles,options:options.bundleConfigs},null,2));
};