Comments (8)
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.
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.
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.
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.
@sajmons thanks! I will update my build script ASAP π
from collimationcircles.
@MattBlack85 I have just released new version 2.1.0
from collimationcircles.
yup, already compiling and packaging for archlinux :)
from collimationcircles.
Great! Thank you very much!
from collimationcircles.
Related Issues (17)
- cannot run HOT 2
- Correction of camera chip offset? HOT 4
- window movement (and transparency) HOT 2
- Canβt work on MacOS HOT 27
- packaging for OS HOT 2
- version 2.1.0 lost transparency on KDE HOT 6
- Settings window lost after detaching and closing app HOT 1
- Windows 11 icon dont apear in exe file HOT 2
- utilizes an UVC USB camera HOT 6
- Transparent background does not work on Win10 x86 HOT 2
- Error selecting JSON files HOT 1
- Stay on top setting not woring
- Collimation Circle V3 Crash HOT 1
- Adding some camera controls, focus, zoom, etc. HOT 47
- App doesn't run on ArchLinux HOT 13
- No camera under Ubuntu 22.04 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collimationcircles.