aboutsummaryrefslogtreecommitdiff
path: root/rpm/jellyfin-offline.sh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-05-14 08:48:43 -0400
committerB. Stack <bgstack15@gmail.com>2024-05-14 08:48:43 -0400
commit2146db71dbb4f650cc9aba9ea3f3b965fe09627c (patch)
tree2d99e323be42fa6c41e3ab0ad752dad1932f6e30 /rpm/jellyfin-offline.sh
parentadd initial research for rpm (diff)
downloadjellyfin-packaging-2146db71dbb4f650cc9aba9ea3f3b965fe09627c.tar.gz
jellyfin-packaging-2146db71dbb4f650cc9aba9ea3f3b965fe09627c.tar.bz2
jellyfin-packaging-2146db71dbb4f650cc9aba9ea3f3b965fe09627c.zip
more research, but will stoprpm-attempt-1
Diffstat (limited to 'rpm/jellyfin-offline.sh')
-rwxr-xr-xrpm/jellyfin-offline.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/rpm/jellyfin-offline.sh b/rpm/jellyfin-offline.sh
index f87897a..08016ae 100755
--- a/rpm/jellyfin-offline.sh
+++ b/rpm/jellyfin-offline.sh
@@ -1,12 +1,13 @@
#!/bin/sh
-JELLYFIN_VERSION=10.8.13
-DOTNET_VERSION=6.0.24
-DOTNET_HOST_VERSION=6.0.24
+#JELLYFIN_VERSION=10.8.13
+#DOTNET_VERSION=6.0.24
+#DOTNET_HOST_VERSION=6.0.24
+DOTNET_HOST_VERSION="${DOTNET_HOST_VERSION:-${DOTNET_VERSION}}"
# Retrieve neccessary .NET NuGet packages for offline building
tar xf jellyfin-${JELLYFIN_VERSION}.tar.gz
-pushd jellyfin-${JELLYFIN_VERSION}
+pushd jellyfin-server
mkdir jellyfin-nupkgs
dotnet restore --packages ./jellyfin-nupkgs
mkdir jellyfin-nupkgs2
@@ -25,7 +26,7 @@ popd
# Retrieve neccessary NPM packages for offline building
tar xf jellyfin-web-${JELLYFIN_VERSION}.tar.gz
-pushd jellyfin-web-${JELLYFIN_VERSION}
+pushd jellyfin-web
mkdir jellyfin-npm
npm config set cache ./jellyfin-npm
npm i webpack
@@ -35,4 +36,4 @@ npm ci
tar -c -I 'xz -9 -T0' -f ../jellyfin-npm.tar.xz jellyfin-npm
cp -p package-lock.json ../jellyfin-web-package-lock.json
popd
-
+mv -i *z ~/rpmbuild/SOURCES/ 2>&1 | grep -vE -e "jellyfin-${JELLYFIN_VERSION}|jellyfin-web-${JELLYFIN_VERSION}" || :
bgstack15