bitwarden/native-messaging.main-fix-path.patch
Bruno Pitrus 2ebf1a20d8 - New upstream release 2024.10.0
* no changelog provided
- Add native-messaging.main-fix-path.patch
- Remove a temporarily-nonfree new dependency that is currently dead code (gh#bitwarden/clients#11611)
  * add remove-sdk-internal.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/bitwarden?expand=0&rev=75
2024-10-25 21:15:23 +00:00

31 lines
985 B
Diff

--- bitwarden-2024.10.0/apps/desktop/src/main/native-messaging.main.ts.orig 2024-10-17 21:45:41.000000000 +0200
+++ bitwarden-2024.10.0/apps/desktop/src/main/native-messaging.main.ts 2024-10-25 22:25:27.180541673 +0200
@@ -328,26 +328,7 @@ export class NativeMessagingMain {
}
private binaryPath() {
- const ext = process.platform === "win32" ? ".exe" : "";
-
- if (isDev()) {
- const devPath = path.join(
- this.appPath,
- "..",
- "desktop_native",
- "target",
- "debug",
- `desktop_proxy${ext}`,
- );
-
- // isDev() returns true when using a production build with ELECTRON_IS_DEV=1,
- // so we need to fall back to the prod binary if the dev binary doesn't exist.
- if (existsSync(devPath)) {
- return devPath;
- }
- }
-
- return path.join(path.dirname(this.exePath), `desktop_proxy${ext}`);
+ return 'XXXLIBDIRXXX/bitwarden/desktop_proxy'
}
private getRegeditInstance() {