-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single executable #26
Comments
Hi bvarnai. This can be done. But first, let me ask you: Did you have to install something to make it work? Do you find it convenient to be a single file? Why? The current packaging logic is to target .Net 4.6 because And, I wasn't really interested in supporting anything older than W10. |
This seems to do the trick... choco install ilmerge
ilmerge gsudo.exe System.Security.Claims.dll System.Security.Principal.Windows.dll /out:gsudoPortable.exe /target:exe /targetplatform:v4,"C:\Windows\Microsoft.NET\Framework\v4.0.30319" ... before signing the assembly. Final file size is around the sum of all input files. (for example: http://www.hurryupandwait.io/blog/what-you-should-know-about-running-ilmerge-on-net-4-5-assemblies-targeting-net-4-0 ) |
Hi gerardog! Thanks for the feedback! Sorry, "no-dep" was misleading, there are no missing external dependencies, everything works fine. What I meant to have a single executable without the dlls etc. IMO it's easier to handle from the user perspective. You proposal using "ilmerge" seems to be a perfect solution. BTW the tool is awesome! We have a bunch of DevOps related bash scripts under Windows, it was a mess to run things elevated, getting stdout or errorlevel was a pain. Now it's just works. |
Maybe it would be nice to have a single executable with dependencies statically linked. It might be around 50-60mb but I don't think that is an issue for the users. Just as additional distribution. Thanks!
The text was updated successfully, but these errors were encountered: