[AsarUpdate] Don't update if version does not match format of nightly releases
This commit is contained in:
parent
888ed721c8
commit
0bf31033ef
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue