use process.execPath
This commit is contained in:
parent
b445a5360c
commit
1abb25c204
1 changed files with 2 additions and 2 deletions
|
@ -6,9 +6,9 @@
|
|||
|
||||
import { app } from "electron";
|
||||
import { existsSync, readdirSync, renameSync, rmdirSync } from "fs";
|
||||
import { join, resolve } from "path";
|
||||
import { dirname, join } from "path";
|
||||
|
||||
const vesktopDir = resolve(__dirname, "..", "..", "..", "..");
|
||||
const vesktopDir = dirname(process.execPath);
|
||||
export const PORTABLE = process.platform === "win32" && !readdirSync(vesktopDir).includes("Uninstall Vesktop.exe");
|
||||
|
||||
const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop");
|
||||
|
|
Reference in a new issue