Audit and fix inject

Closes #1132
Closes #916
Fixes #1293
Fixes #1069
This commit is contained in:
2022-06-25 02:59:23 -04:00
parent b276ff7120
commit 716460a114
8 changed files with 15214 additions and 5433 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ console.log(`Injecting into ${release}`);
if (!fs.existsSync(discordPath)) throw new Error(`Cannot find directory for ${release}`);
console.log(` ✅ Found ${release} in ${discordPath}`);
const appPath = path.join(discordPath, "app");
const appPath = process.platform === "win32" || process.platform === "darwin" ? path.join(discordPath, "app") : discordPath;
const packageJson = path.join(appPath, "package.json");
const indexJs = path.join(appPath, "index.js");