Update constants.ts

This commit is contained in:
vee 2024-05-28 18:18:00 +02:00 committed by GitHub
parent 18cb4de2ea
commit a6cd1b1797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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