curl-impersonate icon indicating copy to clipboard operation
curl-impersonate copied to clipboard

Add install script

Open alexkreidler opened this issue 7 months ago • 0 comments

After a few minutes wrangling with Gemini-2.5 I got this script which works well for me on an M3 arm Mac. It would be awesome if others want to test it out on other OSes. And it could definitely be simplified with less output.

Latest stable version found: 0.9.5
Use the latest stable version (0.9.5)? [Y/n]: 
Using the latest stable version: 0.9.5
----------------------------------------
OS: Darwin (macos)
Arch: arm64
Suffix: arm64-macos
Version: 0.9.5
Filename: curl-impersonate-v0.9.5.arm64-macos.tar.gz
Download URL: https://github.com/lexiforest/curl-impersonate/releases/download/v0.9.5/curl-impersonate-v0.9.5.arm64-macos.tar.gz
Install Dir: /usr/local/bin
----------------------------------------
Downloading curl-impersonate-v0.9.5.arm64-macos.tar.gz to /var/folders/39/2jxzp5311sx4ryz_8js7zcx80000gn/T/tmp.fItitQuyfy...
Download complete.
Extracting archive...
Extraction complete.
Searching for executables in extracted files...
Found main binary: curl-impersonate-chrome

Found 23 other executable files

Install ALL found executables (including wrappers like curl_<>)? [y/N]: Y
Okay, scheduling all found executables for installation.

Preparing to install the following files to /usr/local/bin:
  - curl-impersonate-chrome
  - curl_chrome133a
  - curl_chrome120
  - curl_chrome116
  - curl_safari15_5
  - curl_chrome110
  - curl_chrome119
  - curl_safari15_3
  - curl_safari17_0
  - curl_chrome104
  - curl_edge101
  - curl_safari18_0_ios
  - curl_edge99
  - curl_chrome131_android
  - curl_chrome99_android
  - curl_chrome124
  - curl_chrome123
  - curl_chrome107
  - curl_chrome100
  - curl_chrome99
  - curl_chrome131
  - curl_safari17_2_ios
  - curl_chrome101
  - curl_safari18_0

Write permission needed for /usr/local/bin. Using sudo.
Password:
Overwriting existing file: curl-impersonate-chrome
24 file(s) installed successfully.
Verifying installation of curl-impersonate-chrome:
curl 8.7.0-DEV (aarch64-apple-darwin23.6.0) libcurl/8.7.0-DEV BoringSSL zlib/1.2.12 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 nghttp2/1.63.0
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM SSL threadsafe UnixSockets zstd
'curl-impersonate-chrome' is installed and should be in your PATH if '/usr/local/bin' is configured correctly.
Installation process complete.
Cleaning up temporary directory: /var/folders/39/2jxzp5311sx4ryz_8js7zcx80000gn/T/tmp.fItitQuyfy

alexkreidler avatar Apr 29 '25 06:04 alexkreidler