Binary installer for Jido.Browser adapters.
This module handles downloading and installing the browser automation binaries (vibium, web) for all supported platforms. It follows the same patterns as Phoenix's Tailwind installer for a familiar experience.
Supported Platforms
- macOS (Apple Silicon and Intel)
- Linux (x86_64 and ARM64)
- Windows (x86_64)
Usage
Typically you won't call this module directly. Instead use:
mix jido_browser.installOr configure automatic installation in your mix.exs:
defp aliases do
[
setup: ["deps.get", "jido_browser.install --if-missing", ...]
]
end
Summary
Functions
Returns the path to the binary if installed, or nil.
Returns the configured version for a binary.
Returns the default installation path for binaries.
Ensures the binary is installed. Returns :ok if already installed, or attempts to install if missing.
Installs the specified binary.
Returns whether a given binary is installed and available.
Returns the detected platform for the current system.
Types
Functions
Returns the path to the binary if installed, or nil.
Returns the configured version for a binary.
@spec default_install_path() :: String.t()
Returns the default installation path for binaries.
Binaries are installed into _build/jido_browser-TARGET where TARGET
is the platform identifier (e.g., darwin_arm64). This follows the
same pattern as Phoenix's Tailwind installer.
Ensures the binary is installed. Returns :ok if already installed, or attempts to install if missing.
Options
:adapter- The adapter to check/install (:vibium or :web):force- Force reinstallation even if already installed
Installs the specified binary.
Returns whether a given binary is installed and available.
@spec target() :: platform()
Returns the detected platform for the current system.