Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hombrew package creation #8

Open
stiliajohny opened this issue Oct 7, 2024 · 2 comments
Open

Hombrew package creation #8

stiliajohny opened this issue Oct 7, 2024 · 2 comments

Comments

@stiliajohny
Copy link

have you consider homebrew support ?

happy to raise an PR

@alexellis
Copy link
Owner

@alexellis
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants