Jellyfin 12 moved to .NET 10 and changed the IUserManager surface the plugin relies on: Users/UsersIds became GetUsers()/GetUsersIds(), ChangePassword takes a user id, HasPassword left the provider contract, and the user cache is gone, so every lookup is a detached copy. The plugin now multi-targets net9.0 (against 10.11.5) and net10.0 (against 12.0.0). The differences sit behind a JELLYFIN_12 constant in Compat/UserManagerCompat.cs, whose ChangePasswordAsync also carries the stored hash back onto the caller's instance: on 12 the UpdateUserAsync that claims the account would otherwise write the stale null password back over the one provisioning just set. Each release ships one package per generation, with the fourth version segment naming the target (x.y.z.11 and x.y.z.12) so a 12 server picks the 12 package over the 10.11 one. scripts/package.sh wraps jprm for a single generation and the workflows call it twice. The builder image moves to the .NET 10 SDK, which builds both targets; the net9.0 test run rolls forward onto the .NET 10 runtime. CA1873 is a .NET 10 analyzer that flags the same log calls CA1848 does; it is set to Info, as in the upstream Jellyfin 12 tree. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
27 lines
1015 B
Docker
27 lines
1015 B
Docker
# Watched Together builder image
|
|
# Pre-built image with the .NET 10 SDK and JPRM for building and testing the plugin. The SDK builds
|
|
# both the net9.0 (Jellyfin 10.11) and net10.0 (Jellyfin 12) targets; the net9.0 test run rolls
|
|
# forward onto the .NET 10 runtime.
|
|
# Build: docker build -f Dockerfile.builder -t gitea.tourolle.paris/dtourolle/watchedtogether-builder:latest .
|
|
# Push: docker push gitea.tourolle.paris/dtourolle/watchedtogether-builder:latest
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0
|
|
|
|
# nodejs is required by the runner itself, not by the build: actions/checkout and
|
|
# actions/cache are JavaScript actions, and the runner execs `node` inside this
|
|
# container to run them. Without it every job fails at the checkout step with
|
|
# "exec: node: executable file not found in $PATH".
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
python3-pip \
|
|
git \
|
|
jq \
|
|
curl \
|
|
nodejs \
|
|
npm \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip install --break-system-packages jprm
|
|
|
|
WORKDIR /src
|