Skip to content

Commit

Permalink
Merge pull request #15146 from EyeCantCU/jellyfin
Browse files Browse the repository at this point in the history
feat(packages): Add Jellyfin
  • Loading branch information
ajayk committed Mar 15, 2024
2 parents 444bee2 + 90a1c14 commit f2b3c38
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 0 deletions.
46 changes: 46 additions & 0 deletions jellyfin-web.yaml
@@ -0,0 +1,46 @@
package:
name: jellyfin-web
version: 10.8.13
epoch: 0
description: Web Client for Jellyfin
copyright:
- license: GPL-2.0-only
dependencies:
runtime:
- jellyfin
- nodejs

environment:
contents:
packages:
- busybox
- jellyfin
- nodejs
- npm

pipeline:
- uses: git-checkout
with:
repository: https://github.com/jellyfin/jellyfin-web
tag: v${{package.version}}
expected-commit: 8e37078b6066715b27fd2dde1f7d1eda216044d9

- runs: |
npm ci --no-audit --unsafe-perm
npm run build:production
mkdir -p "${{targets.destdir}}"/usr/lib/jellyfin/jellyfin-web
cp -r dist/* "${{targets.destdir}}"/usr/lib/jellyfin/jellyfin-web
- uses: strip

update:
enabled: true
ignore-regex-patterns:
- '.*alpha.*'
- '.*beta.*'
- '.*rc.*'
github:
identifier: jellyfin/jellyfin-web
use-tag: true
strip-prefix: v
68 changes: 68 additions & 0 deletions jellyfin.yaml
@@ -0,0 +1,68 @@
package:
name: jellyfin
version: 10.8.13
epoch: 0
description: The Free Software Media System
copyright:
- license: GPL-2.0-only
dependencies:
runtime:
- aspnet-6-runtime
- dotnet-6
- ffmpeg

environment:
contents:
packages:
- aspnet-6-runtime
- busybox
- dotnet-6-sdk
- ffmpeg

pipeline:
- uses: git-checkout
with:
repository: https://github.com/jellyfin/jellyfin
tag: v${{package.version}}
expected-commit: e93d03d8cbff2122d7296f477604146f64758a73

- uses: patch
with:
patches: |
GHSA-j7hp-h8jx-5ppr.patch \
GHSA-qrmm-w75w-3wpx.patch
- runs: |
# Set runtime arch
if [[ "${{build.arch}}" == "aarch64" ]]; then
runtime_arch="arm64"
elif [[ "${{build.arch}}" == "x86_64" ]]; then
runtime_arch="x64"
fi
dotnet publish \
--configuration Release Jellyfin.Server \
--no-self-contained \
--output publish \
--runtime linux-$runtime_arch \
-p:DebugSymbols=false \
-p:DebugType=none
mkdir -p "${{targets.destdir}}"/usr/lib
cp -dr publish "${{targets.destdir}}"/usr/lib/jellyfin
mkdir -p "${{targets.destdir}}"/usr/bin
ln -s /usr/lib/jellyfin/jellyfin "${{targets.destdir}}"/usr/bin/jellyfin
- uses: strip

update:
enabled: true
ignore-regex-patterns:
- '.*alpha.*'
- '.*beta.*'
- '.*rc.*'
github:
identifier: jellyfin/jellyfin
use-tag: true
strip-prefix: v
15 changes: 15 additions & 0 deletions jellyfin/GHSA-j7hp-h8jx-5ppr.patch
@@ -0,0 +1,15 @@
diff --git a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
index 9debe555e..76a65fa08 100644
--- a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
+++ b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
@@ -18,8 +18,8 @@
<ItemGroup>
<PackageReference Include="BlurHashSharp" Version="1.2.0" />
<PackageReference Include="BlurHashSharp.SkiaSharp" Version="1.2.0" />
- <PackageReference Include="SkiaSharp" Version="2.88.2" />
- <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.2" />
+ <PackageReference Include="SkiaSharp" Version="2.88.7" />
+ <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.7" />
<PackageReference Include="SkiaSharp.Svg" Version="1.60.0" />
</ItemGroup>

13 changes: 13 additions & 0 deletions jellyfin/GHSA-qrmm-w75w-3wpx.patch
@@ -0,0 +1,13 @@
diff --git a/Jellyfin.Api/Jellyfin.Api.csproj b/Jellyfin.Api/Jellyfin.Api.csproj
index 76831b77b..172a162eb 100644
--- a/Jellyfin.Api/Jellyfin.Api.csproj
+++ b/Jellyfin.Api/Jellyfin.Api.csproj
@@ -19,7 +19,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.9" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
- <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
+ <PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
<PackageReference Include="Swashbuckle.AspNetCore.ReDoc" Version="6.3.1" />
</ItemGroup>

0 comments on commit f2b3c38

Please sign in to comment.