Skip to content

Commit

Permalink
Merge pull request #29 from brett-hodges/main-homebrew-update
Browse files Browse the repository at this point in the history
main homebrew update
  • Loading branch information
brett-hodges authored Oct 5, 2024
2 parents 22d1977 + 95a81e2 commit f75a6a3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
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

0 comments on commit f75a6a3

Please sign in to comment.