ReleaseKit.Target (ReleaseKit v0.2.1)

Copy Markdown

Describes the platform an artifact was built for.

ReleaseKit does not cross-compile releases. The target identifies the artifact that was produced, either from explicit configuration or from the build host.

Summary

Functions

Detects the current host target.

Builds a target from options or detects the current host target.

Returns a stable suffix for target-aware artifact names.

Converts the target to the external manifest representation.

Types

t()

@type t() :: %ReleaseKit.Target{
  arch: String.t(),
  libc: String.t() | nil,
  os: String.t()
}

Functions

detect()

@spec detect() :: t()

Detects the current host target.

new(opts)

@spec new(keyword() | nil) :: t()

Builds a target from options or detects the current host target.

suffix(target)

@spec suffix(t()) :: String.t()

Returns a stable suffix for target-aware artifact names.

to_external_map(target)

@spec to_external_map(t()) :: map()

Converts the target to the external manifest representation.