1
I have a program that needs some DDLs
, those DDLs
are available in another Git, also on Github. Therefore, it would be possible for my library link such a file to such a repository?
To be more specific, there is a DDL (github.com/c-Smile/.../64/sciter.dll) and it is used in my program. I wanted to include it here, along with the main.go
, instead of having to do it manually.
It would be possible to create a sciter.dll
aimed at that Github? A sciter.dll
which would be fictitious, where when using the go get -x
or git clone
would go to the github.com/c-smile
to obtain this content.
That’s possible, how would you do that?
This seems to me to increase complexity more than to reduce it. A dll (so, dylib) is only used for the graphical interface. When you do the
clone
(or usesgo get
) may execute thego generator
that will pass the dll to any variable, since compiling statically does not work. Thus, at each use this dll is uncompressed by the application and consumed. The reason you import it to Github is to make it easy to build, as you won’t have to copy the dlls manually if you build. For general use, the result of thego build
, theexe
, is enough. Or, I got your post wrong.– Inkeliz
I didn’t understand pieces of your text, so I didn’t have the full understanding of your process. A dll in question, is it from a public project? External to your/or your business? What do you mean by "unzip the dll", since it is not possible to unzip a binary. If go build is sufficient, at what point do you use this other compilation and for what?
– egomesbrandao
A dll is publish, not produced by me. O
go build
is only necessary if someone wants to change my code, which is open. I believe it is ideal to facilitate editing. ddl is built into my program. When you usego generate
adding a code creates thesciter_windows.go
he will have thevar DLL = {0x00.binario..}
. When you use the program, thedll
will be unpacked (likeos.Write(DLL)
) and then used. For the end user, who already downloads theexe
, there is no need to have the dll because it already has. The problem is who wants to compile that ends up having to download manually.– Inkeliz
In short, the dll is needed because it is part of the code, literally. So for someone to compile (to create the one
var DLL = {conteudo do dll}
) must have the dlls. Currently the person must go to the Sciter site and download it, then include it in the folder and then use thego generate
, Seems like a waste of time to me. If I include direct dlls on my Github I will have to keep updating, but this still seems to be the best way out, but there is the issue of licenses.– Inkeliz
It’s your decision... I gave the best practice, which is the one used by the market, and why it’s not a waste of time.
– egomesbrandao