From 88b45998a5750df0e7f101b3b19fd5964db0a841 Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 27 Apr 2022 11:10:22 +0100 Subject: [PATCH] [AsarUpdate] Comment out hashing as unused --- src/asarUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asarUpdate.js b/src/asarUpdate.js index 7afdaf2..d240b54 100644 --- a/src/asarUpdate.js +++ b/src/asarUpdate.js @@ -9,14 +9,14 @@ const downloadPath = join(asarPath, '..', 'app.asar.download'); const asarUrl = `https://github.com/GooseMod/OpenAsar/releases/download/${oaVersion.split('-')[0]}/app.asar`; -const getAsarHash = () => createHash('sha512').update(fs.readFileSync(asarPath)).digest('hex'); +// const getAsarHash = () => createHash('sha512').update(fs.readFileSync(asarPath)).digest('hex'); module.exports = async () => { // (Try) update asar log('AsarUpdate', 'Updating...'); if (!oaVersion.includes('-')) return; - const originalHash = getAsarHash(); + // const originalHash = getAsarHash(); await new Promise((res) => { const file = fs.createWriteStream(downloadPath);