Avalonia Native AOT Templete. Smaller size, lower memory usage and faster startup speed. ~18MB size
You can disable UPX Compresse to get lower memory usage. ~20MB usage
Windows
Visual Studio 2022, including .NET 9 & Desktop development with C++ workload.
Ubuntu (20.04+)
sudo apt-get install dotnet9 libicu-dev cmake zlib1g-dev -y
dotnet publish -r <RID> -c Release
# Build for Windows example
dotnet publish -r win-x64 -c Release
NSIS installer ~13MB size
pwsh ./publish.ps1
if you builder the installer with nsis, you can ignore upx compression, so you can get better startup performance.