lwthiker / curl-impersonate

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox
MIT License
3.63k stars 238 forks source link

How to compile this project on Windows? #36

Closed NabiKAZ closed 2 years ago

NabiKAZ commented 2 years ago

How to compile this project on Windows? If possible, put a guide or trick to compile the project on Windows? Without using Docker.

lwthiker commented 2 years ago

I didn't experiment with compiling it natively on Windows. You can, however, use WSL (Windows Subsystem for Linux) with Ubuntu:

Compile curl-impersonate using the Dockerfile

docker build -t curl-impersonate-chrome chrome/

then copy /build/out/curl-impersonate and /build/out/curl_chrome99 from the docker image (i.e. by creating a temporary container and using docker cp).

The binary works well on WSL (tested with Windows 10 and the Ubuntu app)

lwthiker commented 2 years ago

I've opened https://github.com/lwthiker/curl-impersonate/issues/37 to note the requirement of a native Windows build. So I'm closing this issue for now.