1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

Fix platform paths

This commit is contained in:
Daniel García
2024-07-10 13:42:44 +02:00
parent af89116b22
commit 181b1a0e16

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() {