Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(packages): Add Jellyfin #15146

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions jellyfin-web.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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>

Loading