I'm working on exactly this as a package. I'll get it posted as soon as possible.
Here's a gist to get an idea, it has some limitations which I am trying to address in the package.
https://gist.github.com/genotrance/10fb380f54dc3024c1292d1595aa38a6
What DLL are you depending on?
I just posted nimdeps which can bundle dependencies but it doesn't seem to work for DLL files since Nim loads DLLs much before any nimdeps code runs. I'm checking with the core developers to figure this out but no ideas as of now.
Details - loadLibrary() runs during PreMainInner() / moduleDatInit() so unless I can do the DLL extraction during nimdepsDatInit() somehow, I don't see how this is possible.
Any ideas appreciated.
Static linking is ideal but might not always be an option - bass.dll for example. It is definitely an option for Serasar since libsodium does post static files.
More than DLLs or static linking, I prefer compiling the code in so that there are no separate binary dependencies to download. That's how I've been trying to make most nimgen wrappers so that you get everything you need with a nimble install. Similarly nimpcre which removes the dependency on pcreXX.dll by compiling the code in.