[AsarUpdate] Comment out hashing as unused
This commit is contained in:
parent
2e4b8e2bc9
commit
88b45998a5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue