From 0bf31033efa42a9a7796f9c38af5bc0e3365556a Mon Sep 17 00:00:00 2001 From: Oj Date: Mon, 13 Dec 2021 11:02:22 +0000 Subject: [PATCH] [AsarUpdate] Don't update if version does not match format of nightly releases --- src/asarUpdate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asarUpdate.js b/src/asarUpdate.js index c9a88b2..3b055f4 100644 --- a/src/asarUpdate.js +++ b/src/asarUpdate.js @@ -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);