Signal-Desktop: fix too many file descriptors error

This commit is contained in:
tranzystorekk 2024-09-18 17:08:37 +02:00
parent 262520bde0
commit f40b28786f
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ post_extract() {
vsed 's/"node": ".*"/"node": ">=20.0.0"/' -i package.json
# patch node fs with graceful-fs to avoid using too many file descriptors
npm add -D graceful-fs@4.2.11
echo "require('graceful-fs').gracefulify(require('fs'));" > ${wrksrc}/use-graceful-fs.js
export NODE_OPTIONS="--require ${wrksrc}/use-graceful-fs.js"
# Install dependencies for sticker-creator
npm --prefix ./sticker-creator/ install