Add Compiling-From-Source
parent
b6c525cb76
commit
4daf3b082a
1 changed files with 21 additions and 0 deletions
21
Compiling-From-Source.-.md
Normal file
21
Compiling-From-Source.-.md
Normal file
|
@ -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
|
Loading…
Reference in a new issue