fix broken scripts after metadata.json update

pull/1359/head^2
Gordon Williams 2022-01-27 16:36:45 +00:00
parent 5ce3b4adaf
commit 1a92cc2557
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ function fileGetter(url) {
Promise.all(APPS.map(appid => {
try {
var app = JSON.parse(fs.readFileSync(APPDIR + "/" + appid + "metadata.json").toString());
var app = JSON.parse(fs.readFileSync(APPDIR + "/" + appid + "/metadata.json").toString());
} catch (e) {
throw new Error(`App ${appid} not found`);
}
@ -77,6 +77,7 @@ Promise.all(APPS.map(appid => {
js += `\x10if (E.CRC32(require('Storage').read(${JSON.stringify(file.name)}))!=${file.crc}){console.log("${file.name} invalid");FAIL++}\n`;
}*/
});
// js = js.replace(/\x10/g,""); // remove the echo-off characters (for testing only)
fs.writeFileSync(OUTFILE, js);
console.log("Output written to "+OUTFILE);
});

View File

@ -133,7 +133,7 @@ function evaluateFile(file) {
Promise.all(APPS.map(appid => {
try {
var app = JSON.parse(fs.readFileSync(APPDIR + "/" + appid + "metadata.json").toString());
var app = JSON.parse(fs.readFileSync(APPDIR + "/" + appid + "/metadata.json").toString());
} catch (e) {
throw new Error(`App ${appid} not found`);
}