bogdanfinn / tls-client

net/http.Client like HTTP Client with options to select specific client TLS Fingerprints to use for requests.
BSD 4-Clause "Original" or "Old" License
670 stars 133 forks source link

Use xgo in build.sh for easier cross compilation #51

Open ignassew opened 1 year ago

ignassew commented 1 year ago

xgo: https://github.com/techknowlogick/xgo

I tried to write a cross-platform script that uses only the go compiler, but it's very (you have to extract mac-specific SDKs from Xcode, build and compile a toolchain for mac).

xgo seemed to be the easiest way for cross compilation. it uses docker on the backend, It should work on any platform

I tested compilation and example_python on x86_64 linux, can't say for other platforms.

bogdanfinn commented 1 year ago

@ignassew thanks for contribution. i will take a look and also make some tests before merging it :-)