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

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

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

      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.24.2/changie_1.24.2_linux_amd64.tar.gz"
      sha256 "31535a9d8dc548d6d8f315762bfd5b1fba34e707b7600748c8bb8a609649007d"
      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.24.2/changie_1.24.2_linux_arm64.tar.gz"
      sha256 "c21bf5509c3cd6e86e0f290b497a12bed52849c40566d171c5d1cbdef19b156c"
      define_method(:install) do
        bin.install "changie"
      end
    end
  end
end
