# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Mesheryctl < Formula
  desc "The Multi-Service Mesh Management Plane."
  homepage "https://layer5.io/meshery"
  version "0.5.66"
  bottle :unneeded

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/meshery/meshery/releases/download/v0.5.66/mesheryctl_0.5.66_Darwin_x86_64.zip"
      sha256 "4b14ca52b4966da8846e1973990f5784a42d272d1ef79fd4c1abd761ed1b5700"
    end
    if Hardware::CPU.arm?
      url "https://github.com/meshery/meshery/releases/download/v0.5.66/mesheryctl_0.5.66_Darwin_arm64.zip"
      sha256 "b777b1524799ccee7a1bdaff88a18703f3ebc140b811dc7f3bd3bd3028739089"
    end
  end

  on_linux do
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/meshery/meshery/releases/download/v0.5.66/mesheryctl_0.5.66_Linux_arm64.zip"
      sha256 "f16ef2dcdc3998bb9b362d3f8c14511f3b3e9cf5b69e4c2135b594f8cb1f4c26"
    end
    if Hardware::CPU.intel?
      url "https://github.com/meshery/meshery/releases/download/v0.5.66/mesheryctl_0.5.66_Linux_x86_64.zip"
      sha256 "aa37c67c9775f90eea309a6e478d688edd2709f098f6de7eb230aa59189aa1e3"
    end
    if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
      url "https://github.com/meshery/meshery/releases/download/v0.5.66/mesheryctl_0.5.66_Linux_armv6.zip"
      sha256 "55abeb04dfaf9d4370054efe7cf2c08c0de77d13876461232dddaa4d450afe50"
    end
  end

  def install
    bin.install "mesheryctl"
  end
end
