Skip to content

Latest commit

 

History

History
80 lines (56 loc) · 1.81 KB

File metadata and controls

80 lines (56 loc) · 1.81 KB

ccap Installation Notes

This file supports the publishable ccap skill.

Preferred Order

  1. Reuse an existing ccap installation if present.
  2. On macOS with Homebrew available, prefer Homebrew.
  3. If a local compiler and CMake toolchain are available, build from source.
  4. Only if no suitable build toolchain exists, check whether a matching GitHub Release binary exists.

Reuse Existing Install

command -v ccap
ccap --version

Homebrew On macOS

brew tap wysaid/ccap
brew install ccap
ccap --version

Use this when the host is macOS and the task only needs the CLI.

Build From Source

Repository install shortcut (library-focused):

./scripts/build_and_install.sh

If the task specifically requires the ccap CLI binary, use an explicit CLI build/install flow instead:

cmake -B build -DCCAP_BUILD_CLI=ON -DCCAP_INSTALL=ON
cmake --build build
cmake --install build
ccap --version

CLI-focused build:

cmake -B build -DCCAP_BUILD_CLI=ON
cmake --build build
./build/ccap --version

Release-style CLI build:

cmake -B build -DCMAKE_BUILD_TYPE=Release -DCCAP_BUILD_CLI=ON
cmake --build build
./build/ccap --version

GitHub Release Binary Fallback

Only use this path when:

  • no suitable local build toolchain is available
  • network access is available
  • a matching asset exists for the current OS and architecture

Rules:

  • Verify the asset name before download.
  • Do not invent URLs or filenames.
  • If no matching release asset exists, fall back to source build instead of guessing.

Notes

  • Homebrew installation is documented for macOS.
  • Source build is the broadest fallback and should be preferred over speculative binary downloads.
  • On Windows, repository documentation expects source build/install to run in Git Bash for the provided script path.