diff --git a/NodeInstaller/index.js b/NodeInstaller/index.js index e4349f8..b87730c 100644 --- a/NodeInstaller/index.js +++ b/NodeInstaller/index.js @@ -1,7 +1,9 @@ /* - * BetterDiscordApp Installer v0.2 for Discord 0.0.277 + * BetterDiscordApp Installer v0.2 */ +var dver = "0.0.278"; + var asar = require('asar'); var wrench = require('wrench'); var fs = require('fs'); @@ -16,7 +18,7 @@ var _index = _appFolder + "\\app\\index.js"; function install() { - _discordPath = process.env.LOCALAPPDATA + "\\Discord\\app-0.0.277\\resources"; + _discordPath = process.env.LOCALAPPDATA + "\\Discord\\app-"+dver+"\\resources"; console.log("Looking for discord resources at: " + _discordPath); fs.exists(_discordPath, function(exists) { @@ -100,7 +102,7 @@ function install() { function init() { - console.log("BetterDiscord Simple Installer v0.1 for Discord 0.0.277 by Jiiks."); + console.log("BetterDiscord Simple Installer v0.1 for Discord "+dver+" by Jiiks."); console.log("If Discord has updated then download the latest installer."); var rl = readline.createInterface({ input: process.stdin, output: process.stdout }); diff --git a/README.md b/README.md index c1b97c8..521822d 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ Better Discord App enhances Discord desktop app with new features. ![ss](http://puu.sh/jTEBB.png) +``` +If Discord has updated and the installer hasn't, try replaceing the installer index.js with the latest one here: [index.js](https://github.com/Jiiks/BetterDiscordApp/blob/master/NodeInstaller/index.js) +``` + ## Auto Installation * Download the latest package from [releases](https://github.com/Jiiks/BetterDiscordApp/releases) * Run the installer