Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
vaultwarden-web


Commits:
5a926159 by Daniel M. Capella at 2024-02-15T13:52:54-05:00
upgpkg: 2024.1.2-4: max-old-space-size workaround for 32-bit platforms

https://github.com/bitwarden/clients/issues/3557#issuecomment-1259442269

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = vaultwarden-web
        pkgdesc = Bitwarden web vault with the patches to make it work with 
Vaultwarden
        pkgver = 2024.1.2
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/dani-garcia/bw_web_builds
        install = vaultwarden-web.install
        arch = any


=====================================
PKGBUILD
=====================================
@@ -8,7 +8,7 @@ pkgver=2024.1.2
 _upstreamver=${_pkgver%[[:lower:]]}
 #_patchver=$_upstreamver
 _patchver=2024.1.2 # almost always out of sync now
-pkgrel=3
+pkgrel=4
 pkgdesc='Bitwarden web vault with the patches to make it work with Vaultwarden'
 arch=('any')
 url='https://github.com/dani-garcia/bw_web_builds'
@@ -44,6 +44,11 @@ prepare() {
 build() {
   cd bitwarden-clients/apps/web
 
+  # https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-megabytes
+  # Workaround for "JavaScript heap out of memory" on 32-bit systems
+  if [[ $(getconf LONG_BIT) -eq 32 ]]; then
+    export NODE_OPTIONS="--max-old-space-size=1536"
+  fi
   npm run dist:oss:selfhost
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/vaultwarden-web/-/commit/5a926159f75559781f5611c4a199919517de90d0

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/vaultwarden-web/-/commit/5a926159f75559781f5611c4a199919517de90d0
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to