[AsarUpdate] Don't update if version does not match format of nightly releases

This commit is contained in:
Ducko 2021-12-13 11:02:22 +00:00
parent 888ed721c8
commit 0bf31033ef

View file

@ -18,6 +18,10 @@ const getAsarHash = () => crypto.createHash('sha512').update(fs.readFileSync(asa
module.exports = () => { // (Try) update asar
log('AsarUpdate', 'Updating...');
if (!oaVersion.startsWith('nightly-')) {
return log('AsarUpdate', 'Found non-standard version, not updating');
}
const asarUrl = downloadUrls[channel];
log('AsarUpdate', 'Release Channel:', channel, 'Download URL:', asarUrl);