Compile as AOT #52
Replies: 4 comments
-
|
Hi! Thanks for checking out the project and for the suggestion. Just to clarify, the official AppImage provided in the Releases tab is already fully self-contained. It bundles the necessary runtime components inside the package, so you do not need to have .NET installed on your machine to run it. If you installed GPU-T via a third-party package manager (like the Arch AUR), those community maintainers often choose to compile the app as framework-dependent to share system libraries and save disk space. However, that is a downstream packaging choice and isn't how the official AppImage is distributed. Regarding Native AOT specifically: Avalonia does support it (I've just checked in the docs), but from my understanding it requires the entire codebase to be strictly "AOT-compatible". Adapting the current architecture to meet all constraints might be a significant undertaking that I'm not focused on tackling at this exact moment. However, I'm completely open to the idea for future releases - and if anyone in the community wants to take a swing at it and submit a PR, that would be awesome! For now, the 40MB self-contained AppImage is the official, dependency-free way to run the app. |
Beta Was this translation helpful? Give feedback.
-
|
I've built an app in dotnet using avalonia and ended up switching to using dotnet and GTK because of the issues Avalonia will present you with. If you would like to connect outside of github to talk about how that works I'm happy to make myself available. |
Beta Was this translation helpful? Give feedback.
-
|
Note none of this is to knock your work just head off the problems you will slam headfirst into. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you so much for the heads-up and the offer to chat! I can definitely imagine Avalonia has its quirks, especially as you push into some deployment scenarios like AOT. Since the app seems to be currently quite stable and a big UI transition (like moving to GTK) isn't on my immediate roadmap, I'm going to convert this thread over to GitHub Discussions. That will help keep the main issue tracker focused on immediate bugs and features, but it keeps this conversation open. I will absolutely keep your offer in mind and might reach out if I end up slamming headfirst into those Avalonia walls in the future! I really appreciate you looking out for the project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This should be compiled as aot otherwise it forces people to have dotnet left on their machine to even use it.
Beta Was this translation helpful? Give feedback.
All reactions