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

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

      def install
        bin.install "changie"
      end
    end
    if Hardware::CPU.arm?
      url "https://github.com/miniscruff/changie/releases/download/v1.23.0/changie_1.23.0_darwin_arm64.tar.gz"
      sha256 "c94011c07fa94d9a1a193ebe39bd40745e66eaf712808730fef6d118611c4122"

      def install
        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.23.0/changie_1.23.0_linux_amd64.tar.gz"
      sha256 "b99137c1ec072fd04e8bee2a4f79a8c09bd099319eac0ad754c970d527a29665"
      def install
        bin.install "changie"
      end
    end
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/miniscruff/changie/releases/download/v1.23.0/changie_1.23.0_linux_arm64.tar.gz"
      sha256 "e4d5c07ddb4caea877f132496bfb6212a5787b55f3af9d875e61693d328f2aba"
      def install
        bin.install "changie"
      end
    end
  end
end
