export function getReleaseVersion(packageJson) {
  return packageJson.version;
}

export function getReleaseArch(platformArch = process.arch) {
  if (platformArch === "arm64" || platformArch === "aarch64") {
    return "arm64";
  }
  if (platformArch === "x64" || platformArch === "amd64") {
    return "x64";
  }
  return platformArch;
}

export function getReleaseArtifactName(version, arch, ext) {
  return `farmcontrol-server-${version}-${arch}.${ext}`;
}
