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

Add dedicated dotnet tab for dotnet portable build #1077

Merged
merged 3 commits into from
Sep 2, 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
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,
felix920506 marked this conversation as resolved.
Show resolved Hide resolved
}

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