fix(feishin): try newer nodejs20-npm (#3431) (#3461)

* fix(feishin): try newer nodejs20-npm

Signed-off-by: madomado <madonuko@outlook.com>

* interesting

Signed-off-by: madomado <madonuko@outlook.com>

* we do the funny

Signed-off-by: madomado <madonuko@outlook.com>

* funny hack

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
(cherry picked from commit b6fb82a237)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-02-19 21:30:47 -08:00
committed by GitHub
parent 8f9014be8e
commit c59732478f
+9 -5
View File
@@ -13,7 +13,7 @@ License: GPL-3.0
URL: https://github.com/jeffvli/feishin
Source0: %url/archive/refs/tags/v%version.tar.gz
Requires: fuse mpv
BuildRequires: nodejs-npm jq libxcrypt-compat
BuildRequires: nodejs20-npm jq libxcrypt-compat
%description
%summary.
@@ -38,9 +38,13 @@ Keywords=Music;Jellyfin;Audio;Stream;Sonixd
EOF
%build
npm install --legacy-peer-deps
npm run postinstall
npm run build
export PATH="$PATH:$(pwd)/bin"
mkdir bin
ln -s /usr/bin/node-20 bin/node
ln -s /usr/bin/npm-20 bin/npm
npm-20 install --legacy-peer-deps
npm-20 run postinstall
npm-20 run build
%ifarch x86_64
%define a linux
@@ -48,7 +52,7 @@ npm run build
%define a arm64
%endif
npx electron-builder --linux dir --%a
npx-20 electron-builder --linux dir --%a
%install
mkdir -p %buildroot%_datadir/{pixmaps,applications} %buildroot%_bindir