diff options
author | B. Stack <bgstack15@gmail.com> | 2024-05-14 08:48:43 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-05-14 08:48:43 -0400 |
commit | 2146db71dbb4f650cc9aba9ea3f3b965fe09627c (patch) | |
tree | 2d99e323be42fa6c41e3ab0ad752dad1932f6e30 /rpm/jellyfin-offline.sh | |
parent | add initial research for rpm (diff) | |
download | jellyfin-packaging-rpm-attempt-1.tar.gz jellyfin-packaging-rpm-attempt-1.tar.bz2 jellyfin-packaging-rpm-attempt-1.zip |
more research, but will stoprpm-attempt-1
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}" || : |