change portable check string for windows

This commit is contained in:
MrGarlic 2024-05-10 15:48:15 -04:00
parent c65e9c4f2c
commit 855c454018

View file

@ -13,7 +13,7 @@ const vesktopDir = dirname(process.execPath);
export const PORTABLE =
process.platform === "win32" &&
!readdirSync(vesktopDir).includes("Uninstall Vesktop.exe") &&
!process.execPath.endsWith("electron");
!process.execPath.endsWith("electron.exe");
const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop");
export const DATA_DIR = PORTABLE