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.
5 lines
731 B
JavaScript
5 lines
731 B
JavaScript
const fs=require('fs'),path=require('path');const root=path.resolve(__dirname,'project/build',process.argv[2]);
|
|
const files=[];function walk(p){for(const e of fs.readdirSync(p,{withFileTypes:true})){const x=path.join(p,e.name);if(e.isDirectory())walk(x);else files.push(x);}}walk(root);
|
|
const markers={};for(const marker of ['PRIVATE_CODE_ALPHA','PRIVATE_CODE_BETA','PRIVATE_RESOURCE_ALPHA','PRIVATE_RESOURCE_BETA'])markers[marker]=files.filter(p=>/\.(js|json|txt)$/.test(p)&&fs.readFileSync(p,'utf8').includes(marker)).map(p=>path.relative(root,p));
|
|
console.log(JSON.stringify({root,bytes:files.reduce((n,p)=>n+fs.statSync(p).size,0),markers,build:JSON.parse(fs.readFileSync(path.join(root,'probe-build.json'),'utf8'))},null,2));
|