Merge pull request #1077 from gnattu/dedicated-dotnet-portable

Add dedicated dotnet tab for dotnet portable build
This commit is contained in:
Niels van Velzen 2024-09-02 18:53:21 +02:00 committed by GitHub
commit c5d1fd5232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 3 deletions

View File

@ -16,7 +16,8 @@ export enum OsType {
Docker,
Linux,
MacOS,
Windows
Windows,
DotNet,
}
export type Button = {
@ -275,11 +276,11 @@ sudo apt install jellyfin`}
{
id: 'portable',
name: 'Portable',
osTypes: [OsType.Linux, OsType.MacOS, OsType.Windows],
osTypes: [OsType.DotNet],
status: DownloadStatus.Official,
features: [],
platforms: [Platform.DotNet],
description: 'The portable version can be run on any system with a .NET Core runtime.',
description: 'The .NET portable version can be run on any system with a .NET runtime using jellyfin.dll',
stableButtons: [
{
id: 'portable-manual-stable-link',

View File

@ -0,0 +1,8 @@
import React from 'react';
import DownloadsPage from './server';
import { OsType } from '../../data/downloads';
export default function DotNetDownloads() {
return <DownloadsPage osType={OsType.DotNet} />;
}

View File

@ -62,6 +62,12 @@ export default function DownloadsPage({ osType = OsType.Linux }: { osType?: OsTy
>
macOS
</Link>
<Link
to='/downloads/dotnet'
className={clsx('pills__item', { 'pills__item--active': osType === OsType.DotNet })}
>
.NET
</Link>
</div>
</div>