Alexander Epaneshnikov pushed to branch main at Arch Linux / Packaging / 
Packages / bitwarden


Commits:
0a101665 by Alexander Epaneshnikov at 2024-08-27T03:05:50+03:00
fix #3

- - - - -
bb7b0551 by Alexander Epaneshnikov at 2024-08-27T04:36:47+03:00
fix #2

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- bitwarden.sh
- + native-messaging.main.ts.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = bitwarden
        pkgdesc = A secure and free password manager for all of your devices
        pkgver = 2024.8.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/bitwarden/clients/tree/master/apps/desktop
        arch = x86_64
        license = GPL3
@@ -23,12 +23,14 @@ pkgbase = bitwarden
        source = 
bitwarden::git+https://github.com/bitwarden/clients.git#tag=desktop-v2024.8.0
        source = messaging.main.ts.patch
        source = nativelib.patch
+       source = native-messaging.main.ts.patch
        source = bitwarden.sh
        source = bitwarden.desktop
        sha512sums = 
7cef95c6391f0b4d3231f8064336df1382bbcf2dee0b893efdf9c2c34bf7d17b63fca8534bfca3f49b452ffbaf3983bb69797f786222adbfd48f619fd86438db
        sha512sums = 
babcae0dba4d036e5d2cd04d8932b63253bc7b27b14d090932066e9d39383f7565c06d72dae9f96e741b494ef7e50a1fe7ec33905aa3124b427a8bf404df5762
        sha512sums = 
d2ca6c5fa428a74d463e21573ad0dae626eaec14d8318228320967d59760a86a641369880b79aa637fb1572c49b9c9f8c7cdfe9738be5a4bc9118249576311a2
-       sha512sums = 
98d2860bef2283fd09710fbbc5362d7ef2cd8eca26f35805ea258f2dacba78bd6aab14c834388a5089a8150eb0f32a82577aab10f8ad68e1a6371959b2802ad4
+       sha512sums = 
500396e1626115ed3fe47270f32500e733517912bde7c7fd7d28d5e063bcae9ba760944d442a97479f226fa0fbb596095bb08aa74874c0bc48ce9bd752419b50
+       sha512sums = 
09acb1f4a7fb04fda120eda79ee847f285a421bc5bf5c3d42c78767f01f2051984b928019707c7c59e48e87728ab45ee2a98ff7ccee6b4e14bfdff93cd1106f0
        sha512sums = 
fdc047aadc1cb947209d7ae999d8a7f5f10ae46bf71687080bc13bc3082cc5166bbbe88c8f506b78adb5d772f5366ec671b04a2f761e7d7f249ebe5726681e30
 
 pkgname = bitwarden


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=bitwarden
 pkgver=2024.8.0
-pkgrel=1
+pkgrel=2
 _electronversion=31
 pkgdesc='A secure and free password manager for all of your devices'
 arch=('x86_64')
@@ -14,12 +14,14 @@ makedepends=('git' 'npm' 'python' 'python-setuptools' 
'node-gyp' 'nodejs-lts-iro
 
source=(bitwarden::git+https://github.com/bitwarden/clients.git#tag=desktop-v$pkgver
         messaging.main.ts.patch
         nativelib.patch
+        native-messaging.main.ts.patch
         ${pkgname}.sh
         ${pkgname}.desktop)
 
sha512sums=('7cef95c6391f0b4d3231f8064336df1382bbcf2dee0b893efdf9c2c34bf7d17b63fca8534bfca3f49b452ffbaf3983bb69797f786222adbfd48f619fd86438db'
             
'babcae0dba4d036e5d2cd04d8932b63253bc7b27b14d090932066e9d39383f7565c06d72dae9f96e741b494ef7e50a1fe7ec33905aa3124b427a8bf404df5762'
             
'd2ca6c5fa428a74d463e21573ad0dae626eaec14d8318228320967d59760a86a641369880b79aa637fb1572c49b9c9f8c7cdfe9738be5a4bc9118249576311a2'
-            
'98d2860bef2283fd09710fbbc5362d7ef2cd8eca26f35805ea258f2dacba78bd6aab14c834388a5089a8150eb0f32a82577aab10f8ad68e1a6371959b2802ad4'
+            
'500396e1626115ed3fe47270f32500e733517912bde7c7fd7d28d5e063bcae9ba760944d442a97479f226fa0fbb596095bb08aa74874c0bc48ce9bd752419b50'
+            
'09acb1f4a7fb04fda120eda79ee847f285a421bc5bf5c3d42c78767f01f2051984b928019707c7c59e48e87728ab45ee2a98ff7ccee6b4e14bfdff93cd1106f0'
             
'fdc047aadc1cb947209d7ae999d8a7f5f10ae46bf71687080bc13bc3082cc5166bbbe88c8f506b78adb5d772f5366ec671b04a2f761e7d7f249ebe5726681e30')
 
 prepare() {
@@ -32,6 +34,9 @@ prepare() {
        # This patch is required to make "Start automatically on login" work
        patch --strip=1 src/main/messaging.main.ts 
"$srcdir/messaging.main.ts.patch"
 
+       # This patch is required to make "browser integration" work
+       patch --strip=1 src/main/native-messaging.main.ts 
"$srcdir/native-messaging.main.ts.patch"
+
        # Patch build to make it work with system electron
        export SYSTEM_ELECTRON_VERSION=$(electron$_electronversion -v | sed 
's/v//g')
        export ELECTRONVERSION=$_electronversion


=====================================
bitwarden.sh
=====================================
@@ -1,4 +1,8 @@
 #!/bin/sh
 export ELECTRON_IS_DEV=0
+
+# disable core dumps
+ulimit -c 0
+
 cd /usr/lib/bitwarden
 exec electron@electronversion@ /usr/lib/bitwarden/app.asar $@


=====================================
native-messaging.main.ts.patch
=====================================
@@ -0,0 +1,13 @@
+diff --git i/apps/desktop/src/main/native-messaging.main.ts 
w/apps/desktop/src/main/native-messaging.main.ts
+index 8c8404578b..7d3534dae8 100644
+--- i/apps/desktop/src/main/native-messaging.main.ts
++++ w/apps/desktop/src/main/native-messaging.main.ts
+@@ -335,7 +335,7 @@ export class NativeMessagingMain {
+       return path.join(path.dirname(this.exePath), "resources", 
"native-messaging.bat");
+     }
+ 
+-    return this.exePath;
++    return "/usr/bin/bitwarden-desktop";
+   }
+ 
+   private getRegeditInstance() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/bitwarden/-/compare/0408a65be56fa1539b1552383be94abe0e6d47eb...bb7b0551349319f1439e08e778bc1819d31af80b

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/bitwarden/-/compare/0408a65be56fa1539b1552383be94abe0e6d47eb...bb7b0551349319f1439e08e778bc1819d31af80b
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to