Closed fyears closed 9 years ago
The download doesn't need to be embedded, it needs to check for the existence of the executable and assets before provisioning. This is absolutely a good change for us to make.
Yes, the SetBaseDirectory method of the spawn package should do just this. However I admit, we need to and are currently working on normalizing where the tutorials and examples look for this executable.
Ideally in the future, the Thrust executable would be installed via installer somewhere in the $PATH, and we would use Go's path finding mechanisms to locate thrust.
@fyears also, no it is not possible to compile thrust into a go-thrust exe. I wish it were, however thrust contains many years of C/C++/Objective-C code that will not just easily bind in go. For the time being the Thrust way is to create a client app and use the exe over stdin stdout.
This means that you can download applications written in different languages and they will all use the same Thrust as long as the version is compatible
Reopening this till we rewrite the tutorials and examples to use the same directory.
Closing, @fyears Please use spawn.SetBaseDirectory(). Or create your own ThrustProvisioner, that sets the base directory, and does nothing else. Just make sure you have the exe available.
I am using Windows 88 (64 bit). I installed
go-thrust
only using these command:Then
(To my surprise,) after I double clicked
basic_webserver_app.exe
, a prompt came out telling me that "thrust-...-ia32.zip
is downloading".Is it possible to download and embed thrust into the generated executable file while compiling the
.go
file?