hostArtifactsName function

String hostArtifactsName({
  1. Abi? abi,
})

The host artifact directory for this machine, as the engine names them.

Implementation

String hostArtifactsName({Abi? abi}) => switch (abi ?? Abi.current()) {
  Abi.macosArm64 => 'darwin-arm64',
  Abi.macosX64 => 'darwin-x64',
  Abi.linuxX64 => 'linux-x64',
  Abi.linuxArm64 => 'linux-arm64',
  Abi.windowsX64 => 'windows-x64',
  Abi.windowsArm64 => 'windows-arm64',
  final other => throw UnsupportedError(
    'No impellerc is published for this host ($other).',
  ),
};