mirror of
https://github.com/firecrawl/cli.git
synced 2026-09-14 17:30:55 +08:00
55d565812a
- build-binaries.sh: cross-compile via bun for darwin/linux/windows (x64+arm64) - install.sh: curl|bash installer with checksum verification - install.ps1: powershell installer for windows - release-binaries.yml: github actions workflow to build + upload on release - test.yml: cross-platform binary smoke tests on PRs - homebrew formula: template for firecrawl/homebrew-firecrawl tap
48 lines
1.3 KiB
Ruby
48 lines
1.3 KiB
Ruby
class FirecrawlCli < Formula
|
|
desc "CLI for Firecrawl - web scraping, search, and browser automation"
|
|
homepage "https://firecrawl.dev"
|
|
version "1.10.0"
|
|
license "ISC"
|
|
|
|
on_macos do
|
|
on_arm do
|
|
url "https://github.com/firecrawl/cli/releases/download/v#{version}/firecrawl-darwin-arm64.tar.gz"
|
|
sha256 "PLACEHOLDER"
|
|
end
|
|
on_intel do
|
|
url "https://github.com/firecrawl/cli/releases/download/v#{version}/firecrawl-darwin-x64.tar.gz"
|
|
sha256 "PLACEHOLDER"
|
|
end
|
|
end
|
|
on_linux do
|
|
on_arm do
|
|
url "https://github.com/firecrawl/cli/releases/download/v#{version}/firecrawl-linux-arm64.tar.gz"
|
|
sha256 "PLACEHOLDER"
|
|
end
|
|
on_intel do
|
|
url "https://github.com/firecrawl/cli/releases/download/v#{version}/firecrawl-linux-x64.tar.gz"
|
|
sha256 "PLACEHOLDER"
|
|
end
|
|
end
|
|
|
|
def install
|
|
if OS.mac?
|
|
if Hardware::CPU.arm?
|
|
bin.install "firecrawl-darwin-arm64" => "firecrawl"
|
|
else
|
|
bin.install "firecrawl-darwin-x64" => "firecrawl"
|
|
end
|
|
elsif OS.linux?
|
|
if Hardware::CPU.arm?
|
|
bin.install "firecrawl-linux-arm64" => "firecrawl"
|
|
else
|
|
bin.install "firecrawl-linux-x64" => "firecrawl"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/firecrawl --version")
|
|
end
|
|
end
|