# 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.0"
  license "MIT"

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

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

      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.0/changie_1.25.0_linux_amd64.tar.gz"
      sha256 "f8c012073cd7865783d6db5123c59cdc006b2244309ce80243c8f6a1dda7aa5a"
      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.0/changie_1.25.0_linux_arm64.tar.gz"
      sha256 "26345ccf8b9ded9bb6663faf8eb3518b5fff746db9f4422a653271f8ebfb03c0"
      define_method(:install) do
        bin.install "changie"
      end
    end
  end
end
