# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Changie < Formula
  desc "Automated changelog tool for preparing releases with lots of customization options."
  homepage "https://changie.dev"
  version "1.25.2"
  license "MIT"

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/miniscruff/changie/releases/download/v1.25.2/changie_1.25.2_darwin_amd64.tar.gz"
      sha256 "729561d13d45c2cdf0daef2c6eb494bf185135747bbdf600e4e0e586683f372b"

      define_method(:install) do
        bin.install "changie"
      end
    end
    if Hardware::CPU.arm?
      url "https://github.com/miniscruff/changie/releases/download/v1.25.2/changie_1.25.2_darwin_arm64.tar.gz"
      sha256 "03205b2ddc042458693e4e8e1d663d0bcc1cec9c519e15e92c8b81a286e0977e"

      define_method(:install) do
        bin.install "changie"
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
      url "https://github.com/miniscruff/changie/releases/download/v1.25.2/changie_1.25.2_linux_amd64.tar.gz"
      sha256 "7489b5a6a595e5a9f8b0d392114b10c130634639ef1190fafb2f15a5cd9058cd"
      define_method(:install) do
        bin.install "changie"
      end
    end
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/miniscruff/changie/releases/download/v1.25.2/changie_1.25.2_linux_arm64.tar.gz"
      sha256 "84c3f158906da24f9a4941518dcf55a2badf9524bfb9579c78b5e7876ae675fa"
      define_method(:install) do
        bin.install "changie"
      end
    end
  end
end
