Skip to content

Commit

Permalink
Add compilation instructions for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lwthiker committed Apr 17, 2022
1 parent 7d86e2f commit 4b41e5b
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ There are currently two build options depending on your use case:
There are two versions of `curl-impersonate` for technical reasons. The **chrome** version is used to impersonate Chrome, Edge and Safari. The **firefox** version is used to impersonate Firefox.

## Native build
Currently tested for Linux only. Work on porting to Mac is in progress.

### Linux (Ubuntu)

Install dependencies for building all the components:
```
Expand All @@ -18,7 +19,7 @@ sudo apt install build-essential pkg-config cmake ninja-build curl autoconf auto
sudo apt install python3-pip python-is-python3
pip install gyp-next
export PATH="$PATH:~/.local/bin" # Add gyp to PATH
# For the Chrome vesion only
# For the Chrome version only
sudo apt install golang-go
```

Expand Down Expand Up @@ -63,6 +64,32 @@ curl-impersonate-ff https://www.wikipedia.org
curl-impersonate-chrome https://www.wikipedia.org
```

### macOS
*macOS support is still a work in progress and currently supports the Chrome version only.*

Install dependencies for building all the components:
```
brew install pkg-config make cmake ninja autoconf automake libtool
# For the Chrome version only
brew install go
```

Generate the configure script:
```
autoconf
```

Configure and compile:
```
mkdir build && cd build
../configure
# Build and install the Chrome version
gmake chrome-build
sudo gmake chrome-install
# Optionally remove all the build files
cd ../ && rm -Rf build
```

### Static compilation
To compile curl-impersonate statically with libcurl-impersonate, pass `--enable-static` to the `configure` script.

Expand Down

0 comments on commit 4b41e5b

Please sign in to comment.