Git Product home page Git Product logo

Comments (8)

sajmons avatar sajmons commented on May 28, 2024

I guess that .NET eqvivalent of strip would be trim.

You can read about it here: https://ivanderevianko.com/2020/09/make-apps-small-again-trimming-net-5

But as my knowledge currently only trimmode CopyUsed working with AvaloniaUI.
See comment in CollimationCircles.csproj file:

More here:

You can try with trimmode CopyUsed but it's not guaranted to work either. You can further limit trimming with adding tags in csproj file as described here: https://ivanderevianko.com/2020/09/make-apps-small-again-trimming-net-5.

In future versions I will try to publish trimmed application. Will addit to TODO list.

Hope that that helps.

from collimationcircles.

sajmons avatar sajmons commented on May 28, 2024

Hmm, I guess dotnet trim si not strip eqvivalent: acording to dotnet/runtime#37334

Maybe we should merge multiple files in single executable before strip. This can be done with ILMerge.exe or ILRepack. But I guess both are only available on windows.

I think it's not worth the effort.

from collimationcircles.

sajmons avatar sajmons commented on May 28, 2024

Good news Mattia! I have revisited my publish workflow and discovered nice option for C# project file true. Enabling this option drastically reduces final executable file size. From 113MB to 51MB. I think this is all I can do. I think Linux strip command can not be used with dotnet apps. I have removed debug PDB files too.
See this in action in next version.

from collimationcircles.

sajmons avatar sajmons commented on May 28, 2024

Im using this command now for publishing:

dotnet publish -c Release -f net7.0 -r linux-arm64 -o d:/Projekti/Publish/linux-arm64 --self-contained true /p:PublishSingleFile=true /p:PublishReadyToRun=true /p:DebugType=None /p:DebugSymbols=false

from collimationcircles.

MattBlack85 avatar MattBlack85 commented on May 28, 2024

@sajmons thanks! I will update my build script ASAP πŸš€

from collimationcircles.

sajmons avatar sajmons commented on May 28, 2024

@MattBlack85 I have just released new version 2.1.0

from collimationcircles.

MattBlack85 avatar MattBlack85 commented on May 28, 2024

yup, already compiling and packaging for archlinux :)

from collimationcircles.

sajmons avatar sajmons commented on May 28, 2024

Great! Thank you very much!

from collimationcircles.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.