# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Sharecmd < Formula
  desc "Share your files using Cloudproviders with just one command"
  homepage "https://github.com/mschneider82/sharecmd"
  version "0.0.111"

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/mschneider82/sharecmd/releases/download/v0.0.111/sharecmd_0.0.111_Darwin_x86_64.tar.gz"
      sha256 "fe46fc11a8f3e51537bc483a123c63884f40c8129d754bd94689415a73494465"

      def install
        bin.install "share"
      end
    end
    if Hardware::CPU.arm?
      url "https://github.com/mschneider82/sharecmd/releases/download/v0.0.111/sharecmd_0.0.111_Darwin_arm64.tar.gz"
      sha256 "67a24897354df4a9e5a816777f0e50da5ef5d453440526b4e5ce1f971e5ad53a"

      def install
        bin.install "share"
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel?
      url "https://github.com/mschneider82/sharecmd/releases/download/v0.0.111/sharecmd_0.0.111_Linux_x86_64.tar.gz"
      sha256 "95f49e0139142c6289032fec932fae1b9cb7474d8f34ad21ed2c8cd8f6adaac4"

      def install
        bin.install "share"
      end
    end
    if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
      url "https://github.com/mschneider82/sharecmd/releases/download/v0.0.111/sharecmd_0.0.111_Linux_armv6.tar.gz"
      sha256 "a077da294d0ca4e15be44d1bfed182cc1670ed7c1e382446c658ee6939e051a6"

      def install
        bin.install "share"
      end
    end
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/mschneider82/sharecmd/releases/download/v0.0.111/sharecmd_0.0.111_Linux_arm64.tar.gz"
      sha256 "873252edeeb5d070e2b874d6a724b982126be5509323642e4c21fa886b8e7277"

      def install
        bin.install "share"
      end
    end
  end

  test do
    system "#{bin}/share --help"
  end
end
