captchaforge 0.2.34

Automatic CAPTCHA detection and multi-strategy solving for chromiumoxide-driven headless browsers (Cloudflare Turnstile, reCAPTCHA v2/v3, hCaptcha, image grids, audio, sliders).
Documentation
# Homebrew formula. Move this file to `homebrew-tap/Formula/captchaforge.rb`
# in the `santhsecurity/homebrew-tap` repo. Operators install via:
#
#   brew tap santhsecurity/tap
#   brew install captchaforge
#
# Bumping a version:
#   1. Ship a new vX.Y.Z GitHub Release via .github/workflows/release.yml.
#   2. Bump `url` to the new tarball.
#   3. Bump `sha256` to the new tarball's SHA-256 (printed by the
#      release workflow as an artifact).
class Captchaforge < Formula
  desc "Automatic CAPTCHA detection + multi-strategy solver for headless browsers"
  homepage "https://github.com/santhsecurity/captchaforge"
  license "MIT OR Apache-2.0"
  head "https://github.com/santhsecurity/captchaforge.git", branch: "main"

  on_macos do
    on_arm do
      url "https://github.com/santhsecurity/captchaforge/releases/download/v0.2.31/captchaforge-v0.2.31-aarch64-apple-darwin.tar.gz"
      sha256 "REPLACE_ME_aarch64_apple_darwin"
    end
    on_intel do
      url "https://github.com/santhsecurity/captchaforge/releases/download/v0.2.31/captchaforge-v0.2.31-x86_64-apple-darwin.tar.gz"
      sha256 "REPLACE_ME_x86_64_apple_darwin"
    end
  end

  on_linux do
    on_arm do
      url "https://github.com/santhsecurity/captchaforge/releases/download/v0.2.31/captchaforge-v0.2.31-aarch64-unknown-linux-gnu.tar.gz"
      sha256 "REPLACE_ME_aarch64_unknown_linux_gnu"
    end
    on_intel do
      url "https://github.com/santhsecurity/captchaforge/releases/download/v0.2.31/captchaforge-v0.2.31-x86_64-unknown-linux-gnu.tar.gz"
      sha256 "REPLACE_ME_x86_64_unknown_linux_gnu"
    end
  end

  depends_on "chromium" => :recommended
  depends_on "tesseract" => :recommended

  def install
    bin.install "captchaforge"
  end

  test do
    assert_match "captchaforge", shell_output("#{bin}/captchaforge --version 2>&1", 0)
  end
end