Add Compiling-From-Source

Toastie 2025-01-13 12:06:17 +00:00
parent b6c525cb76
commit 4daf3b082a

@ -0,0 +1,21 @@
## Prerequisites
- [.NET SDK][Dotnet] 8.0 or higher
- Install [Git] or download this repository [manually][RepoClone].
- If you are on Linux, you'll also need [fontconfig][Fontconfig] as Avalonia depends on it.
## Steps
- Download this repository.
- `git clone https://toastielab.dev/EllieBotDevs/EllieHub`
- Navigate to `EllieHub/EllieHub`
- `cd EllieHub/EllieHub`
- Execute `dotnet publish`. Tweak the build with any [compilation flags][DotnetPublishOptions] you want.
- Adding `-c Release` to your build is strongly encouraged as this will include compiler optimizations into your final binary.
- For reference, this is the command used to generate the official builds in this repository, where `<rid>` is the [Runtime Identifier][DotnetRid].
- `dotnet publish -c Release -r <rid> -o ~/build/EllieHub_<rid> --self-contained`
[Dotnet]: https://dotnet.microsoft.com/en-us/download/dotnet
[Git]: https://git-scm.com/downloads
[Fontconfig]: https://www.freedesktop.org/wiki/Software/fontconfig/
[RepoClone]: https://toastielab.dev/EllieBotDevs/EllieHub/archive/main.zip
[DotnetPublishOptions]: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
[DotnetRid]: https://learn.microsoft.com/en-us/dotnet/core/rid-catalog