This file supports the publishable ccap skill.
- Reuse an existing
ccapinstallation if present. - On macOS with Homebrew available, prefer Homebrew.
- If a local compiler and CMake toolchain are available, build from source.
- Only if no suitable build toolchain exists, check whether a matching GitHub Release binary exists.
command -v ccap
ccap --versionbrew tap wysaid/ccap
brew install ccap
ccap --versionUse this when the host is macOS and the task only needs the CLI.
Repository install shortcut (library-focused):
./scripts/build_and_install.shIf 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 --versionCLI-focused build:
cmake -B build -DCCAP_BUILD_CLI=ON
cmake --build build
./build/ccap --versionRelease-style CLI build:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCCAP_BUILD_CLI=ON
cmake --build build
./build/ccap --versionOnly 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.
- 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.