From 4daf3b082a96d81d89ba5c563eaccfea20ac6928 Mon Sep 17 00:00:00 2001 From: Toastie Date: Mon, 13 Jan 2025 12:06:17 +0000 Subject: [PATCH] Add Compiling-From-Source --- Compiling-From-Source.-.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Compiling-From-Source.-.md diff --git a/Compiling-From-Source.-.md b/Compiling-From-Source.-.md new file mode 100644 index 0000000..741ad8a --- /dev/null +++ b/Compiling-From-Source.-.md @@ -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 `` is the [Runtime Identifier][DotnetRid]. + - `dotnet publish -c Release -r -o ~/build/EllieHub_ --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 \ No newline at end of file