1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-03 18:28:13 +01:00

Fix platform paths

This commit is contained in:
Daniel García 2024-07-10 13:42:44 +02:00
parent af89116b22
commit 181b1a0e16
No known key found for this signature in database
GPG Key ID: 2FA30DC7130BE717

View File

@ -326,11 +326,17 @@ export class NativeMessagingMain {
return path.join(this.appPath, "..", "desktop_native", "target", "release", "desktop_proxy");
}
if (process.platform === "win32") {
return path.join(path.dirname(this.exePath), "resources", "native-messaging.bat");
switch (process.platform) {
case "darwin": {
// exePath is <path-to-app>/Bitwarden.app/Contents/MacOS/Bitwarden"
return path.join(path.dirname(this.exePath), "..", "Resources", "desktop_proxy");
}
case "win32": {
return path.join(path.dirname(this.exePath), "desktop_proxy.exe");
}
default:
return path.join(path.dirname(this.exePath), "desktop_proxy");
}
return this.exePath;
}
private getRegeditInstance() {