diff options
Diffstat (limited to 'rpm/jellyfin-offline.sh')
-rwxr-xr-x | rpm/jellyfin-offline.sh | 13 |
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}" || : |