Expand description
Asset selection for the running host.
§Grammar
The default asset-name pattern is
{name}-{version}-{target}{ext}. Tool authors override via
rtb_app::metadata::ToolMetadata::update_asset_pattern.
Placeholders:
| Placeholder | Value |
|---|---|
{name} | rtb_app::metadata::ToolMetadata::name |
{version} | Release tag with any leading v stripped |
{target} | Rust host triple (e.g. x86_64-unknown-linux-gnu) |
{os} | linux, macos, windows |
{arch} | x86_64, aarch64 |
{ext} | .tar.gz on Unix / .zip on Windows |
All occurrences of each placeholder are replaced. Unknown placeholders pass through verbatim — useful when a tool author embeds release-pipeline-specific substitutions we haven’t anticipated yet.
Constants§
- DEFAULT_
PATTERN - Default pattern — matches the release-pipeline conventions we recommend to tool authors.
Functions§
- host_
substitutions - Return
(os, arch, target_triple, ext)for the running binary. - pick_
asset - Pick the asset on
releasewhose name matchesexpected. - pick_
signature - Find the signature file for
assetonrelease. Preference:.minisigover.sig(minisign format carries more context when things go wrong). ReturnsNoneif neither is present. - render_
pattern - Render the asset pattern with host + release substitutions.