Package Details: rsshub-git r9177.93498412b-1

Git Clone URL: https://aur.archlinux.org/rsshub-git.git (read-only, click to copy)
Package Base: rsshub-git
Description: Everything is RSSible
Upstream URL: https://rsshub.app/
Licenses: MIT
Submitter: YuutaW
Maintainer: spiritomb
Last Packager: spiritomb
Votes: 4
Popularity: 0.092552
First Submitted: 2020-07-22 17:35 (UTC)
Last Updated: 2023-05-24 15:15 (UTC)

Latest Comments

yan12125 commented on 2024-07-11 13:07 (UTC) (edited on 2024-07-27 01:55 (UTC) by yan12125)

Here is a working version after upstream moved to TypeScript and pnpm. I also disabled the broken minify-docker.js:

diff --git a/PKGBUILD b/PKGBUILD
index 58bd28e..0c32d3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: YuutaW <i@yuuta.moe>

 pkgname=rsshub-git
-pkgver=r9177.93498412b
+pkgver=r12207.bc0f3d4b64
 pkgrel=1
 pkgdesc="Everything is RSSible"
 # The built package bundles native Node.js extensions like OpenCC
@@ -11,8 +11,8 @@ arch=('x86_64')
 url="https://rsshub.app/"
 license=('MIT')
 depends=('nodejs')
-# rsshub uses yarn, and some deps (ex: re2) uses npm
-makedepends=('npm' 'yarn' 'node-gyp' 'git')
+# rsshub uses pnpm, and some deps (ex: re2) uses npm
+makedepends=('npm' 'pnpm' 'node-gyp' 'git')
 optdepends=(
   'chromium: for routes using a headless browser'
 )
@@ -24,7 +24,7 @@ source=("$pkgname::git+https://github.com/DIYgod/RSSHub.git"
         "rsshub_tmpfile.conf")
 sha512sums=('SKIP'
             'f8f0e8195a05cc7cd43630a2ce3b28250279d3b4adbfa3693b57b23ea70013b9e5de8ab4905a6411152bdf0ab470d5873c11f6836fc281c8fd961f520a10f3b4'
-            '7fdcbbec994bfbeab8a52f31786e1034f48f78ffcdc0de69ea23eda6bc377424be900922b87db06b834429fcaeeed4c9a2b3a3291ca4df4d1f9ad4b9fc421a17'
+            '8b234f05567ab289bac7eb2e617861de65a2ea293c8e859f1c499b46d800f4babdb949672970b94e6890f22cc28d4b4f302ecb30b0a2416b9ffa685dc5a9b117'
             '892a82aa32c0f486009eb2b620b8fd5b8674de6a36ab16d42545e64fbdb7184b7d1f2ca63d6841ec420f639bc714df88dd32c17803772aa489a4c5f12f7ec96f'
             'ae2fd7a452716fccd0f421176aba9b9971edf9a9a3f241bd023044f9bce140dfcad0777eff9d47a891264d0ea49ce9f9f7671043b44fd2bcf7c9f484c08b8449')
 # clean-nm.sh leaves many empty directories
@@ -45,14 +45,12 @@ prepare() {

 build() {
     cd $pkgname
-    # Not using --production here as minify-docker.js needs devDependencies.
-    # Unused dependencies will be cleaned up, anyway.
-    PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn --cache-folder "${srcdir}/yarn-cache"

-    # Cleanup node modules, as Dockerfile does.
-    node ./scripts/docker/minify-docker.js
-    rm -rf node_modules
-    mv app-minimal/node_modules .
+    PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true pnpm install --prod --store-dir "${srcdir}/pnpm-store"
+
+    pnpm build
+
+    rm -rf node_modules/.cache
 }

 package() {
diff --git a/rsshub.service b/rsshub.service
index 0fdd4c6..db52363 100644
--- a/rsshub.service
+++ b/rsshub.service
@@ -7,7 +7,9 @@ User=rsshub
 Group=rsshub
 EnvironmentFile=/etc/rsshub/rsshub.conf
 Environment=NO_LOGFILES=true
-ExecStart=/usr/bin/node /opt/rsshub/lib/index.js
+Environment=NODE_ENV=production
+WorkingDirectory=/opt/rsshub
+ExecStart=/opt/rsshub/node_modules/.bin/tsx /opt/rsshub/lib/index.ts
 KillMode=mixed
 CapabilityBoundingSet=CAP_NET_BIND_SERVICE
 AmbientCapabilities=CAP_NET_BIND_SERVICE

Update 2024/07/27: Use NODE_ENV=production to reduce memory consumption

malacology commented on 2024-03-25 14:14 (UTC)

please switch branch to legacy before rsshub is rebuild

malacology commented on 2024-03-21 03:59 (UTC)

upstream change: minify-docker.js

Done in 166.10s. Start analyzing, project root: /build/rsshub/src/rsshub Error: File /build/rsshub/src/rsshub/api/vercel.js does not exist. at Job.emitDependency (/build/rsshub/src/rsshub/node_modules/@vercel/nft/out/node-file-trace.js:297:23) at async Promise.all (index 1) at async nodeFileTrace (/build/rsshub/src/rsshub/node_modules/@vercel/nft/out/node-file-trace.js:52:5) at async /build/rsshub/src/rsshub/scripts/docker/minify-docker.js:13:35 Error: File /build/rsshub/src/rsshub/api/vercel.js does not exist. at Job.emitDependency (/build/rsshub/src/rsshub/node_modules/@vercel/nft/out/node-file-trace.js:297:23) at async Promise.all (index 1) at async nodeFileTrace (/build/rsshub/src/rsshub/node_modules/@vercel/nft/out/node-file-trace.js:52:5) at async /build/rsshub/src/rsshub/scripts/docker/minify-docker.js:13:35

utanerime commented on 2024-03-04 13:07 (UTC)

When buiding this package, yarn install command will show errors listed below:

Error: File /home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/api/vercel.js does not exist.
    at Job.emitDependency (/home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/node_modules/@vercel/nft/out/node-file-trace.js:297:23)
    at async Promise.all (index 1)
    at async nodeFileTrace (/home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/node_modules/@vercel/nft/out/node-file-trace.js:52:5)
    at async /home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/scripts/docker/minify-docker.js:13:35 Error: File /home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/api/vercel.js does not exist.
    at Job.emitDependency (/home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/node_modules/@vercel/nft/out/node-file-trace.js:297:23)
    at async Promise.all (index 1)
    at async nodeFileTrace (/home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/node_modules/@vercel/nft/out/node-file-trace.js:52:5)
    at async /home/$(USER)/.cache/paru/clone/rsshub-git/src/rsshub-git/scripts/docker/minify-docker.js:13:35

and then exits. Do not know if it is a bug or somgthing.

yan12125 commented on 2021-02-07 08:50 (UTC) (edited on 2021-02-07 13:53 (UTC) by yan12125)

Thanks for creating this package. Here are some suggestions:

Here is a modified version of PKGBUILD: https://github.com/yan12125/rsshub-git/commit/950d19dad1778a760a4008c93055c47ad02e0de9