Electron installer fix

Fix the index.js file path in the Electron installer.
This commit is contained in:
Léo 2016-11-06 12:03:29 +01:00 committed by GitHub
parent 07f38008d8
commit c4f4ac41e8
1 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@ class Installer {
var lines = []; var lines = [];
var lr = readline.createInterface({ 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 => { lr.on('line', line => {
@ -187,7 +187,7 @@ class Installer {
}); });
lr.on('close', () => { 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.appendLog("Finished installing BetterDiscord");
self.updatePb(5, 5); self.updatePb(5, 5);
}); });
@ -266,4 +266,4 @@ class Installer {
} }
module.exports = Installer; module.exports = Installer;