forked from sim0n00ps/OF-DL
Rename OF DL to OF DL.Cli
This commit is contained in:
parent
2dcb9a3753
commit
f536a34772
@ -29,12 +29,12 @@ jobs:
|
||||
|
||||
- name: Build for Windows and Linux
|
||||
run: |
|
||||
dotnet publish "OF DL/OF DL.csproj" -p:Version=${{ steps.version.outputs.version }} \
|
||||
dotnet publish "OF DL/OF DL.Cli.csproj" -p:Version=${{ steps.version.outputs.version }} \
|
||||
-p:PackageVersion=${{ steps.version.outputs.version }} \
|
||||
-p:WarningLevel=0 -c Release -r win-x86 \
|
||||
--self-contained true -p:PublishSingleFile=true -o outwin
|
||||
|
||||
dotnet publish "OF DL/OF DL.csproj" -p:Version=${{ steps.version.outputs.version }} \
|
||||
dotnet publish "OF DL/OF DL.Cli.csproj" -p:Version=${{ steps.version.outputs.version }} \
|
||||
-p:PackageVersion=${{ steps.version.outputs.version }} \
|
||||
-p:WarningLevel=0 -c Release -r linux-x64 \
|
||||
--self-contained true -p:PublishSingleFile=true -o outlin
|
||||
|
||||
16
AGENTS.md
16
AGENTS.md
@ -21,10 +21,11 @@ most important change points.
|
||||
|
||||
## Project Layout
|
||||
|
||||
- `OF DL/Program.cs` is the single entrypoint and routes between GUI (default) and CLI (`--cli`).
|
||||
- `OF DL/CLI/` contains Spectre.Console UI helpers and progress reporting (CLI-only).
|
||||
- `OF DL.Gui/` contains the Avalonia desktop UI (`App`, `MainWindow`, `AboutWindow`, `FaqWindow`, MVVM view models, and GUI event handlers).
|
||||
- `OF DL.Gui/Helpers/` contains GUI-specific utility helpers (for example, Docker-aware web-link behavior shared across windows).
|
||||
- `OF DL.Cli/CLI/` contains Spectre.Console UI helpers and progress reporting (CLI-only).
|
||||
- `OF DL.Gui/` contains the Avalonia desktop UI (`App`, `MainWindow`, `AboutWindow`, `FaqWindow`, MVVM view models, and
|
||||
GUI event handlers).
|
||||
- `OF DL.Gui/Helpers/` contains GUI-specific utility helpers (for example, Docker-aware web-link behavior shared across
|
||||
windows).
|
||||
- `OF DL.Core/Services/` contains application services (API, auth, download, config, DB, startup, logging, filenames).
|
||||
- `OF DL.Core/Models/` holds configuration, auth, API request/response models, downloads/startup results, DTOs,
|
||||
entities, and mapping helpers.
|
||||
@ -101,16 +102,17 @@ dotnet build OF DL.sln
|
||||
- Run from source (GUI mode, default):
|
||||
|
||||
```bash
|
||||
dotnet run --project "OF DL/OF DL.csproj"
|
||||
dotnet run --project "OF DL/OF DL.Cli.csproj"
|
||||
```
|
||||
|
||||
- Run CLI mode:
|
||||
|
||||
```bash
|
||||
dotnet run --project "OF DL/OF DL.csproj" -- --cli
|
||||
dotnet run --project "OF DL/OF DL.Cli.csproj" -- --cli
|
||||
```
|
||||
|
||||
- If you want a local `rules.json` fallback, run from `OF DL/` or copy `OF DL/rules.json` into your working directory.
|
||||
- If you want a local `rules.json` fallback, run from `OF DL.Cli/` or copy `OF DL.Cli/rules.json` into your working
|
||||
directory.
|
||||
- Run tests:
|
||||
|
||||
```bash
|
||||
|
||||
@ -12,7 +12,7 @@ WORKDIR "/src"
|
||||
|
||||
# Build release
|
||||
RUN dotnet publish "OF DL.Gui/OF DL.Gui.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outgui
|
||||
RUN dotnet publish "OF DL/OF DL.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outcli
|
||||
RUN dotnet publish "OF DL/OF DL.Cli.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outcli
|
||||
|
||||
# Generate default config.conf files
|
||||
RUN /src/outcli/OF\ DL --non-interactive || true && \
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -1,4 +1,4 @@
|
||||
# Stealth Script Creation
|
||||
# Stealth Script Creation
|
||||
|
||||
## Requirements
|
||||
|
||||
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.33516.290
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OF DL", "OF DL\OF DL.csproj", "{318B2CE3-D046-4276-A2CF-89E6DF32F1B3}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OF DL.Cli", "OF DL.Cli\OF DL.Cli.csproj", "{318B2CE3-D046-4276-A2CF-89E6DF32F1B3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OF DL.Core", "OF DL.Core\OF DL.Core.csproj", "{7B8B6A26-6732-4B3A-AE62-1CE589DFF8F2}"
|
||||
EndProject
|
||||
|
||||
@ -2,14 +2,16 @@
|
||||
|
||||
A Linux release of OF-DL is not available at this time, however you can run OF-DL on Linux using Docker.
|
||||
Please refer to the [Docker](/installation/docker) page for instructions on how to run OF-DL in a Docker container.
|
||||
If you do not have Docker installed, you can download it from [here](https://docs.docker.com/desktop/install/linux-install/).
|
||||
If you do not have Docker installed, you can download it
|
||||
from [here](https://docs.docker.com/desktop/install/linux-install/).
|
||||
If you would like to run OF-DL natively on Linux, you can build it from source by following the instructions below.
|
||||
|
||||
## Building from source
|
||||
|
||||
- Install FFmpeg (and FFprobe)
|
||||
|
||||
Follow the installtion instructions from FFmpeg ([https://ffmpeg.org/download.html](https://ffmpeg.org/download.html)) for your distro (Ubuntu, Debian, Fedora, etc.) to install FFmpeg and FFprobe
|
||||
Follow the installation instructions from FFmpeg ([https://ffmpeg.org/download.html](https://ffmpeg.org/download.html))
|
||||
for your distro (Ubuntu, Debian, Fedora, etc.) to install FFmpeg and FFprobe
|
||||
|
||||
!!! warning
|
||||
|
||||
@ -17,7 +19,9 @@ Follow the installtion instructions from FFmpeg ([https://ffmpeg.org/download.ht
|
||||
|
||||
- Install .NET 10
|
||||
|
||||
Follow the installation instructions from Microsoft ([https://learn.microsoft.com/en-us/dotnet/core/install/linux](https://learn.microsoft.com/en-us/dotnet/core/install/linux)) for your distro (Ubuntu, Debian, Fedora, etc.) to install .NET 10.
|
||||
Follow the installation instructions from
|
||||
Microsoft ([https://learn.microsoft.com/en-us/dotnet/core/install/linux](https://learn.microsoft.com/en-us/dotnet/core/install/linux))
|
||||
for your distro (Ubuntu, Debian, Fedora, etc.) to install .NET 10.
|
||||
|
||||
- Clone the repo
|
||||
|
||||
@ -29,7 +33,7 @@ cd 'OF-DL'
|
||||
- Build the project. Replace `%VERSION%` with the current version number of OF-DL (e.g. `1.9.20`).
|
||||
|
||||
```bash
|
||||
dotnet publish "OF DL/OF DL.csproj" -p:Version=%VERSION% -p:PackageVersion=%VERSION% -c Release
|
||||
dotnet publish "OF DL/OF DL.Cli.csproj" -p:Version=%VERSION% -p:PackageVersion=%VERSION% -c Release
|
||||
cd 'OF DL/bin/Release/net10.0'
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user