🧾 rc-assets.sh Reference

🖼️ rc-assets.sh

Script Path: bones/scripts/rc-assets.sh

Purpose

CLI Interface

rc-assets.sh [--dry-run] [--verbose] [--help]

Supported flags: - --help, -h Show usage information and exit. - --dry-run Preview actions without writing output. - --verbose Show detailed logs.

Workflow Steps

  1. Verify Dependencies: check_deps find sha256sum yq.
  2. Discover Assets: Locate referenced assets in output/*.html
  3. Compute Metadata: For each referenced asset, compute SHA256 and copy into output/assets/
  4. Assemble & Write Manifest: Structure and write to bones/asset-manifest.yaml or preview under dry-run.

Exit Codes

Examples

# Generate full manifest
./bones/scripts/rc-assets.sh

# Preview without writing
./bones/scripts/rc-assets.sh --dry-run --verbose

# Show help
./bones/scripts/rc-assets.sh --help

Manifest Format

The output manifest is a YAML file with entries like:

- path: "images/rotkeeper-splash.png"
  sha256: "abc123..."

If no assets are found, an empty manifest with assets: [] is written.

Author:

Project: Rotkeeper

Version: 0.2.3-pre

License: