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.
8 lines
529 B
JavaScript
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));
|
|
};
|
|
|