# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class I18n < Formula
  desc "A tool to extract translations from CSV file and append to the strings resources in your Android project"
  homepage "https://github.com/master-g/i18n"
  version "0.1.3"
  license "Apache License"

  on_macos do
    if Hardware::CPU.arm?
      url "https://github.com/master-g/i18n/releases/download/v0.1.3/i18n_0.1.3_darwin_arm64.zip"
      sha256 "3118da3aa0c4cf7226ecf51d4f7aeb7c32d817dce33f498db29bc314066b2c56"

      def install
        bin.install "i18n"
      end
    end
    if Hardware::CPU.intel?
      url "https://github.com/master-g/i18n/releases/download/v0.1.3/i18n_0.1.3_darwin_amd64.zip"
      sha256 "4d98cbf614e39b769bc66e7c39e0acb2d233db568a4ef951f0a4b431338fafca"

      def install
        bin.install "i18n"
      end
    end
  end

  on_linux do
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/master-g/i18n/releases/download/v0.1.3/i18n_0.1.3_linux_arm64.zip"
      sha256 "927a353b5620cc027d0515f5c197977d06aea777b3c09e19711783d728fde813"

      def install
        bin.install "i18n"
      end
    end
    if Hardware::CPU.intel?
      url "https://github.com/master-g/i18n/releases/download/v0.1.3/i18n_0.1.3_linux_amd64.zip"
      sha256 "021b058b7d3448904bb7c9e9570408f57b9cdda0a0f83a262dede2e28eb9771e"

      def install
        bin.install "i18n"
      end
    end
  end

  test do
    system "#{bin}/i18n version"
  end
end
