flathub / com.github.PintaProject.Pinta

https://flathub.org/apps/details/com.github.PintaProject.Pinta
2 stars 1 forks source link

Does Pinta really use Microsoft.AspNetCore.App? #37

Open igor2x opened 4 months ago

igor2x commented 4 months ago

I was looking into the size of Pinta flatpak with: flatpak list --app --columns=name,size | grep Pinta and the Pinta flatpak size is: "Pinta 102,6 MB". Which seems little bit too much for me.

I have entered Pinta flatpak with: flatpak run --command=bash com.github.PintaProject.Pinta and then changed directory to /app directory where flatpak files are located for particular flatpak: cd /app

Now I have searched for the top 5 biggest files/dirs: du -S | sort -k1nr | head -n 5 and I got:

71136 ./lib/dotnet/shared/Microsoft.NETCore.App/7.0.11 21564 ./lib/dotnet/shared/Microsoft.AspNetCore.App/7.0.11 7192 ./lib/pinta 416 ./lib/dotnet/host/fxr/7.0.11 288 ./share/icons/hicolor/scalable/actions

Now my questions:

If Pinta is not using ASP, then we can reduce the size of Pinta flaptak by removing ASP from flatpak. How? At last line of manifest file insert new line: - /lib/dotnet/shared/Microsoft.AspNetCore.App/

cameronwhite commented 4 months ago

Pinta shouldn't depends on AspNetCore so this is definitely worth a try to see if it works (not sure if there are any hidden dependencies that would cause errors if that folder doesn't exist at all)