mirror of
https://github.com/dockur/windows.git
synced 2026-05-06 14:41:24 +00:00
build: Add curl-impersonate
Added steps to build and install curl-impersonate for both Firefox and Chrome versions in the GitHub Actions workflow.
This commit is contained in:
parent
07d32b34c0
commit
ef1182eff1
1 changed files with 24 additions and 0 deletions
24
.github/workflows/links.yml
vendored
24
.github/workflows/links.yml
vendored
|
|
@ -21,6 +21,30 @@ jobs:
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
-
|
||||||
|
name: Build curl-impersonate
|
||||||
|
run: |
|
||||||
|
sudo apt install build-essential pkg-config cmake ninja-build curl autoconf automake libtool
|
||||||
|
# For the Firefox version only
|
||||||
|
sudo apt install python3-pip libnss3
|
||||||
|
pip install gyp-next
|
||||||
|
export PATH="$PATH:~/.local/bin" # Add gyp to PATH
|
||||||
|
# For the Chrome version only
|
||||||
|
sudo apt install golang-go unzip
|
||||||
|
git clone https://github.com/lwthiker/curl-impersonate.git
|
||||||
|
cd curl-impersonate
|
||||||
|
mkdir build && cd build
|
||||||
|
../configure
|
||||||
|
# Build and install the Firefox version
|
||||||
|
make firefox-build
|
||||||
|
sudo make firefox-install
|
||||||
|
# Build and install the Chrome version
|
||||||
|
make chrome-build
|
||||||
|
sudo make chrome-install
|
||||||
|
# You may need to update the linker's cache to find libcurl-impersonate
|
||||||
|
sudo ldconfig
|
||||||
|
# Optionally remove all the build files
|
||||||
|
cd ../ && rm -Rf build
|
||||||
-
|
-
|
||||||
name: Validate Links
|
name: Validate Links
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue