Skip to main content

build_kind_of

Function build_kind_of 

Source
pub fn build_kind_of(
    dev: bool,
    portable_label: Option<&str>,
    made_for_channel: &str,
) -> BuildKind
Expand description

The kind of a build from what its binary carries:

  • dev: it runs from a source tree’s output folder;
  • portable_label: the label in a portable folder’s agentmux-portable.marker (runtime_mode::portable_build_label). A release portable’s label is its plain version (0.60.22); a local one’s carries the commit and a build stamp (0.60.22+g2a5424fe2.…);
  • made_for_channel: the channel the packaging script compiled in as the build’s default. The release pipeline compiles in stable; a local package build gets a local-… channel of its own. This is a constant of the binary: an upgrade’s recorded channel does not change it.