Package Details: bitwarden 1.25.1-2

Git Clone URL: https://aur.archlinux.org/bitwarden.git (read-only, click to copy)
Package Base: bitwarden
Description: Bitwarden Desktop Application
Upstream URL: https://github.com/bitwarden/desktop
Keywords: password-manager
Licenses: GPL3
Conflicts: bitwarden-bin, bitwarden-git
Submitter: libertylocked
Maintainer: libertylocked
Last Packager: libertylocked
Votes: 78
Popularity: 7.48
First Submitted: 2018-10-11 08:37
Last Updated: 2021-04-04 19:06

Pinned Comments

libertylocked commented on 2019-11-11 02:58

If the package breaks after electron update, rebuilding bitwarden should fix it. (Unless there is a way to trigger an auto rebuild whenever electron is upgraded?)

Whenever that happens feel free to leave a comment and I'll update the pkgrel

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

lowsky commented on 2020-08-05 11:38

Failing to update:

Error: failed to commit transaction (conflicting files)
bitwarden: /usr/bin/bitwarden-desktop exists in filesystem
bitwarden: /usr/lib/bitwarden/resources/app.asar exists in filesystem
bitwarden: /usr/share/applications/bitwarden.desktop exists in filesystem
bitwarden: /usr/share/icons/hicolor/128x128/apps/bitwarden.png exists in filesystem
bitwarden: /usr/share/icons/hicolor/16x16/apps/bitwarden.png exists in filesystem
bitwarden: /usr/share/icons/hicolor/256x256/apps/bitwarden.png exists in filesystem
bitwarden: /usr/share/icons/hicolor/32x32/apps/bitwarden.png exists in filesystem
bitwarden: /usr/share/icons/hicolor/48x48/apps/bitwarden.png exists in filesystem
bitwarden: /usr/share/icons/hicolor/512x512/apps/bitwarden.png exists in filesystem
bitwarden: /usr/share/icons/hicolor/64x64/apps/bitwarden.png exists in filesystem
Errors occurred, no packages were upgraded.

yochananmarqos commented on 2020-07-03 04:43

@libertylocked: Why are you adding makedepends that are already in the base-devel group? It's assumed those are already installed and are not necessary to include.

libertylocked commented on 2020-07-03 03:51

I noticed there were missing makedepends (pkgconf, make, gcc) that were causing a node-gyp error upon npm install (in the desktop-idle npm package). This has so far been fixed.

yochananmarqos commented on 2020-06-30 13:56

@libertylocked: I had the patch locally but had forgotten to whitelist it in my .gitignore. It's there now.

libertylocked commented on 2020-06-30 06:43

@yochananmarqos I am aware that it builds with node 12, however the official builds are built and tested with node 10 (see their travis.yml). I feel it's best to use the same version as the upstream.

As for the "unnecessary dependencies", I think the patch file is missing from your repo.

yochananmarqos commented on 2020-06-29 23:54

Updated PKGBUILD with proper submodule using Node.js 12 LTS and unnecessary dependencies removed.

yochananmarqos commented on 2020-06-26 14:10

I just built it with Node.js v10 LTS 10.21.0 and v12 LTS 12.18.1. Please update v10 or switch to v12.

TimMc commented on 2020-06-06 11:12

Tried to build for RPi4. Added 'aarch64' to arch and changed dist/linux-unpacked/resources to dist/linux-arm64-unpacked/resources and package built ok but when I run bitwarden-desktop it gives the same dependency error as @zman0900 found:

App threw an error during load
Error: The module '/tmp/.org.chromium.Chromium.HHlF6o'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 73. This version of Node.js requires
NODE_MODULE_VERSION 76. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at process.func (electron/js2c/asar.js:140:31)
at process.func [as dlopen] (electron/js2c/asar.js:140:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1016:18)
at Object.func (electron/js2c/asar.js:140:31)
at Object.func [as .node] (electron/js2c/asar.js:149:18)
at Module.load (internal/modules/cjs/loader.js:816:32)
at Module._load (internal/modules/cjs/loader.js:728:14)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Module.require (internal/modules/cjs/loader.js:853:19)

Checked https://nodejs.org/en/download/releases/ which didn't show any node.js release with NODE_MODULE_VERSION of 73 or 76! Tried rebuilding with node 14.1.0 which has NODE_MODULE_VERSION of 83 but got the exact same error message with _VERSION 73/76 error.

My diff file:

diff --git a/PKGBUILD b/PKGBUILD
index 0ccae6e..ea2f905 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,9 +5,9 @@ pkgname=bitwarden
pkgver=1.18.0
pkgrel=1
_jslibcommit='212a2e3745e6e0e2b3057ed308c47daf6aeefbc8'
-_nodeversion='10.20.1'
+_nodeversion='14.1.0'
pkgdesc='Bitwarden Desktop Application'
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
url='https://github.com/bitwarden/desktop'
license=('GPL3')
makedepends=('expac' 'git' 'npm' 'python' 'nvm' 'jq' 'patch')
@@ -64,7 +64,7 @@ package() {
cd "${srcdir}/desktop-${pkgver}"
install -dm755 "${pkgdir}/usr/lib/${pkgname}"
-  cp -r dist/linux-unpacked/resources "${pkgdir}/usr/lib/${pkgname}/"
+  cp -r dist/linux-arm64-unpacked/resources "${pkgdir}/usr/lib/${pkgname}/"
install -dm755 "${pkgdir}/usr/share/icons/hicolor"
for i in 16 32 48 64 128 256 512; do

Don't know enough about node.js to take this any further. Any ideas?

yochananmarqos commented on 2020-05-25 17:25

@libertylocked: I just built this with Node 10.20.1 LTS, I would suggest using it since 10.19.0 is no longer supported.

zman0900 commented on 2020-05-15 17:23

This fails to build in a clean chroot. It seems adding 'python' to makedepends is enough to fix it.

When I build outside of a clean chroot, app fails to run with an error like this:

App threw an error during load
Error: The module '/tmp/.org.chromium.Chromium.FgwVCu'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 73. This version of Node.js requires
NODE_MODULE_VERSION 76. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func (electron/js2c/asar.js:140:31)
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1016:18)
    at Object.func (electron/js2c/asar.js:140:31)
    at Object.func [as .node] (electron/js2c/asar.js:149:18)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)