mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
Fix platform paths
This commit is contained in:
@@ -326,11 +326,17 @@ export class NativeMessagingMain {
|
|||||||
return path.join(this.appPath, "..", "desktop_native", "target", "release", "desktop_proxy");
|
return path.join(this.appPath, "..", "desktop_native", "target", "release", "desktop_proxy");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === "win32") {
|
switch (process.platform) {
|
||||||
return path.join(path.dirname(this.exePath), "resources", "native-messaging.bat");
|
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() {
|
private getRegeditInstance() {
|
||||||
|
|||||||
Reference in New Issue
Block a user