[RetainAsar] Remove excess logging

This commit is contained in:
Ducko 2022-02-16 09:18:03 +00:00
parent 8d673370e0
commit f1aed17167
1 changed files with 2 additions and 8 deletions

View File

@ -3,7 +3,7 @@ const { join } = require('path');
const { copyFileSync, readdirSync } = require('original-fs'); // Use original-fs, not Electron's modified fs
module.exports = () => {
log('RetainAsar', 'Detected possible host update, retaining OpenAsar...');
log('RetainAsar', 'Trying...');
const currentAsarPath = join(require.main.filename, '..');
@ -16,14 +16,8 @@ module.exports = () => {
if (nextAsarPath === currentAsarPath) return;
log('RetainAsar', `Paths:
Install Dir: ${installDir}
Next App Dir: ${nextAppDir}
Current Asar: ${currentAsarPath}
Next Asar: ${nextAsarPath}`);
copyFileSync(nextAsarPath, backupAsarPath);
copyFileSync(currentAsarPath, nextAsarPath);
log('RetainAsar', 'Completed');
log('RetainAsar', 'Done');
};