From 0f77ba7aea464ae58d4e35f38340eb6d180aa48e Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 20 Apr 2022 17:14:34 +0100 Subject: [PATCH] [Updater > Module] Rewrite bootstrap to not use manifest and core set of 3 modules instead --- src/updater/moduleUpdater.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/updater/moduleUpdater.js b/src/updater/moduleUpdater.js index 76df02f..84ec55d 100644 --- a/src/updater/moduleUpdater.js +++ b/src/updater/moduleUpdater.js @@ -49,8 +49,8 @@ exports.init = (endpoint, { releaseChannel, version }) => { try { installed = JSON.parse(fs.readFileSync(manifestPath)); } catch { - for (const m in JSON.parse(fs.readFileSync(join(paths.getResources(), 'bootstrap', 'manifest.json')))) { // Read [resources]/bootstrap/manifest.json, with "moduleName": version (always 0) - installed[m] = { installedVersion: 0 }; // Set initial version as 0 + for (const m of [ 'desktop_core', 'utils', 'voice' ]) { // Ignore actual bootstrap manifest and choose our own core 3, others are installed as/when needed + installed['discord_' + m] = { installedVersion: 0 }; // Set initial version as 0 } }