homebrewArtifactExtension function
Archive suffix a Homebrew artifact carries for kind.
A bare executable is downloaded as-is; a bundle has to be an archive so that its sibling libraries survive the trip.
Implementation
String homebrewArtifactExtension(PayloadKind kind) => switch (kind) {
PayloadKind.executable => '',
PayloadKind.directory => '.tar.gz',
};