Replies: 2 comments 5 replies
-
While I believe it does feel more modern sometime using Rust (if it's the point you want to express), the size difference does not convince that much. As I understand it the comparsion seems to be unfair that the There's discussion about whether should the shim executable be dynamically linked before, no decision was made though. For reference, the size of kiennq-shim would be <17KB when it's dynamically linked.1 The current shims are robust enough, improved for years. But users might want to use their own shim implementation, and this is why I tried to propose ScoopInstaller/Scoop#6209. FWIW, the priority of the feature is low though. Footnotes |
Beta Was this translation helpful? Give feedback.
-
Just inspected, and it does link dynamically.
By contrast:
|
Beta Was this translation helpful? Give feedback.
-
I have created an alternative Scoop shim executable called miniature (because it's very small), in an effort to replace the rather large shim executable currently used, as well as its sister
.shim
files.This executable uses Windows' STRINGTABLE Resource to embed the target executable and arguments in the shim directly, removing the external
.shim
file, and erasing the need to read from disk, and parse said file altogether.It also weighs in at 20KB, which is about 17% of better-shim-exe at 113KB.
There's also a sister program in the same repository used to create these shims, as unfortunately it's not as simple as editing a text file.
I understand this is not a big problem I've solved, and this solution may introduce more issues, but it may be time to update the default shim used by Scoop (especially since better-shim-exe hasn't had an update in 6 years), using more modern technologies, and a much smaller footprint.
Beta Was this translation helpful? Give feedback.
All reactions