Skip to content

Commit

Permalink
Merge pull request #1077 from gnattu/dedicated-dotnet-portable
Browse files Browse the repository at this point in the history
Add dedicated dotnet tab for dotnet portable build
  • Loading branch information
nielsvanvelzen authored Sep 2, 2024
2 parents 15bbf09 + 8965d68 commit c5d1fd5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/data/downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export enum OsType {
Docker,
Linux,
MacOS,
Windows
Windows,
DotNet,
}

export type Button = {
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 8 additions & 0 deletions src/pages/downloads/dotnet.tsx
Original file line number Diff line number Diff line change
@@ -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} />;
}
6 changes: 6 additions & 0 deletions src/pages/downloads/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit c5d1fd5

Please sign in to comment.