Skip to content

Commit 2043fb2

Browse files
authored
feat: add support for jellyfin 10.11 (#12)
* feat: add support for jellyfin 10.11 * chore: pin exact dotnet version * chore: update net version
1 parent 08b1b59 commit 2043fb2

6 files changed

Lines changed: 14 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Test Build Output
2929
run: |
30-
if [ ! -f "Jellyfin.Plugin.Jellysleep/bin/Release/net8.0/Jellyfin.Plugin.Jellysleep.dll" ]; then
30+
if [ ! -f "Jellyfin.Plugin.Jellysleep/bin/Release/net9.0/Jellyfin.Plugin.Jellysleep.dll" ]; then
3131
echo "Build failed - DLL not found"
3232
exit 1
3333
fi

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "Launch",
88
"request": "launch",
99
"preLaunchTask": "build-and-copy",
10-
"program": "${config:jellyfinDir}/bin/Debug/net8.0/jellyfin.dll",
10+
"program": "${config:jellyfinDir}/bin/Debug/net9.0/jellyfin.dll",
1111
"args": [
1212
//"--nowebclient"
1313
"--webdir",

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"label": "copy-dll",
3737
"type": "shell",
3838
"command": "cp",
39-
"args": ["./${config:pluginName}/bin/Release/net8.0/${config:pluginName}.dll", "${config:jellyfinDataDir}/plugins/${config:pluginName}/"]
39+
"args": ["./${config:pluginName}/bin/Release/net9.0/${config:pluginName}.dll", "${config:jellyfinDataDir}/plugins/${config:pluginName}/"]
4040
}
4141
]
4242
}

Jellyfin.Plugin.Jellysleep/Jellyfin.Plugin.Jellysleep.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RootNamespace>Jellyfin.Plugin.Jellysleep</RootNamespace>
@@ -28,17 +28,11 @@
2828
</PropertyGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Jellyfin.Controller" Version="10.10.7" />
32-
<PackageReference Include="Jellyfin.Model" Version="10.10.7" />
31+
<PackageReference Include="Jellyfin.Controller" Version="10.11.0" />
32+
<PackageReference Include="Jellyfin.Model" Version="10.11.0" />
3333
<PackageReference Include="Humanizer.Core" Version="2.14.1" PrivateAssets="none" />
3434
</ItemGroup>
3535

36-
<ItemGroup>
37-
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
38-
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="All" />
39-
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
40-
</ItemGroup>
41-
4236
<ItemGroup>
4337
<None Remove="Configuration\configPage.html" />
4438
<EmbeddedResource Include="Configuration\configPage.html" />

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ restore:
4040

4141
test: build
4242
@echo "Testing build output..."
43-
@if [ ! -f "Jellyfin.Plugin.Jellysleep/bin/Release/net8.0/Jellyfin.Plugin.Jellysleep.dll" ]; then \
43+
@if [ ! -f "Jellyfin.Plugin.Jellysleep/bin/Release/net9.0/Jellyfin.Plugin.Jellysleep.dll" ]; then \
4444
echo "Build test failed - DLL not found"; \
4545
exit 1; \
4646
fi
@@ -73,10 +73,10 @@ install: package
7373
dev-install: debug
7474
@echo "Installing debug build to local Jellyfin..."
7575
sudo mkdir -p /var/lib/jellyfin/plugins/Jellysleep
76-
sudo cp Jellyfin.Plugin.Jellysleep/bin/Debug/net8.0/Jellyfin.Plugin.Jellysleep.dll /var/lib/jellyfin/plugins/Jellysleep/
76+
sudo cp Jellyfin.Plugin.Jellysleep/bin/Debug/net9.0/Jellyfin.Plugin.Jellysleep.dll /var/lib/jellyfin/plugins/Jellysleep/
7777
# Copy Humanizer dependency for debug builds
78-
@if [ -f "Jellyfin.Plugin.Jellysleep/bin/Debug/net8.0/Humanizer.dll" ]; then \
79-
sudo cp Jellyfin.Plugin.Jellysleep/bin/Debug/net8.0/Humanizer.dll /var/lib/jellyfin/plugins/Jellysleep/; \
78+
@if [ -f "Jellyfin.Plugin.Jellysleep/bin/Debug/net9.0/Humanizer.dll" ]; then \
79+
sudo cp Jellyfin.Plugin.Jellysleep/bin/Debug/net9.0/Humanizer.dll /var/lib/jellyfin/plugins/Jellysleep/; \
8080
fi
8181
@echo "Debug plugin installed. Restart Jellyfin to load the updated plugin."
8282

global.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"sdk": {
3-
"version": "8.0.115"
4-
}
5-
}
2+
"sdk": {
3+
"version": "9.0.306"
4+
}
5+
}

0 commit comments

Comments
 (0)