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

main homebrew update #29

Merged
merged 2 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build/homebrew/homebrew-metadata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"eb92bb276e7f6306529b12a87596c3f48be326f743ff535fdc641d53a3d2b653" "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-arm64.tar.gz" linux-arm64 5.0.1
"afcf6b0add91f42235b57ba86768f2aa1278c3e2075060ddfba67dce9ff027e6" "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-i386.tar.gz" linux-i386 5.0.1
"c96adf52709106127fda6df8de96ad72d62a74a8063da417725829225ba7fd45" "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-x86_64.tar.gz" linux-x86_64 5.0.1
43 changes: 43 additions & 0 deletions build/homebrew/kitops.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
class Kitops < Formula
desc "Packaging and versioning system for AI/ML projects"
homepage "https://KitOps.ml"
license "Apache-2.0"

on_macos do
on_arm do
url
sha256
end
on_intel do
url
sha256
end

end

on_linux do
on_arm do
url "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-arm64.tar.gz"
sha256 "eb92bb276e7f6306529b12a87596c3f48be326f743ff535fdc641d53a3d2b653"
end
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-x86_64.tar.gz"
sha256 "c96adf52709106127fda6df8de96ad72d62a74a8063da417725829225ba7fd45"
else
url "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-i386.tar.gz"
sha256 "afcf6b0add91f42235b57ba86768f2aa1278c3e2075060ddfba67dce9ff027e6"
end
end
end

def install
bin.install "kit"
end

test do
expected_version = "Version: "
actual_version = shell_output("#{bin}/kit version").strip
assert_match expected_version, actual_version
end
end