From c4f4ac41e844455ea12168610b9482ba2c4f7d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o?= Date: Sun, 6 Nov 2016 12:03:29 +0100 Subject: [PATCH] Electron installer fix Fix the index.js file path in the Electron installer. --- Installers/Electron/src/installer_index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Installers/Electron/src/installer_index.js b/Installers/Electron/src/installer_index.js index 357b29f..536c777 100644 --- a/Installers/Electron/src/installer_index.js +++ b/Installers/Electron/src/installer_index.js @@ -170,7 +170,7 @@ class Installer { var lines = []; var lr = readline.createInterface({ - input: fs.createReadStream(`${config.paths.installPath}/resources/app/app/index.js`) + input: fs.createReadStream(`${config.paths.installPath}/resources/app/index.js`) }); lr.on('line', line => { @@ -187,7 +187,7 @@ class Installer { }); lr.on('close', () => { - fs.writeFileSync(`${config.paths.installPath}/resources/app/app/index.js`, lines.join('\n')); + fs.writeFileSync(`${config.paths.installPath}/resources/app/index.js`, lines.join('\n')); self.appendLog("Finished installing BetterDiscord"); self.updatePb(5, 5); }); @@ -266,4 +266,4 @@ class Installer { } -module.exports = Installer; \ No newline at end of file +module.exports = Installer;