update plugins in cron
This commit is contained in:
parent
aaa81414f1
commit
90e67b0df9
|
@ -1,3 +1,5 @@
|
|||
/* eslint-disable no-console */
|
||||
|
||||
const fs = require('fs');
|
||||
const crypto = require('crypto');
|
||||
|
||||
|
@ -28,6 +30,16 @@ for (const translation of Object.keys(allTranslations)) {
|
|||
}
|
||||
}
|
||||
|
||||
console.log('Updating plugins...');
|
||||
for (const plugin of data.plugins) {
|
||||
if (plugin.manifest.locale) {
|
||||
continue;
|
||||
}
|
||||
if (plugin.official) {
|
||||
plugin.manifest = JSON.parse(fs.readFileSync(`docs/plugins/${plugin.manifest.name}/manifest.json`, 'utf8'));
|
||||
}
|
||||
}
|
||||
|
||||
console.log('Checking for changes...');
|
||||
|
||||
const newData = JSON.stringify(data);
|
||||
|
|
Loading…
Reference in New Issue