alexellis / kubetrim

Trim 📏 your KUBECONFIG automatically
MIT License
93 stars 6 forks source link

Hombrew package creation #8

Open stiliajohny opened 2 weeks ago

stiliajohny commented 2 weeks ago

have you consider homebrew support ?

happy to raise an PR

alexellis commented 2 weeks ago

Feel free - https://github.com/alexellis/homebrew-alexellis

alexellis commented 1 week ago

@stiliajohny is this still something you want?

I've added kubetrim to my tap, but it's not tested, and ships an AMD64 binary, feel free to update it to include both architectures:

https://github.com/alexellis/homebrew-alexellis

Something like this:

class Arkade < Formula
  desc "Open Source Marketplace For Developer Tools"
  version "0.11.27"

  on_macos do
    if Hardware::CPU.arm?
      url "https://github.com/alexellis/arkade/releases/download/0.11.27/arkade-darwin-arm64"
      sha256 "YOUR_ARM64_SHA256"

      def install
        bin.install "arkade-darwin-arm64" => "arkade"
      end
    elsif Hardware::CPU.intel?
      url "https://github.com/alexellis/arkade/releases/download/0.11.27/arkade-darwin-amd64"
      sha256 "YOUR_AMD64_SHA256"

      def install
        bin.install "arkade-darwin-amd64" => "arkade"
      end
    end
  end
end