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:
parent
af89116b22
commit
181b1a0e16
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user