From 2b9b89ecb1a5d8552e38efa522eca2b10237dde7 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 21 Mar 2024 23:25:49 +0100 Subject: [PATCH] 0.0.21 --- Formula/dctl.rb | 36 ------------------------------------ Formula/dosei.rb | 33 +++++++++++++++++++++++++++------ 2 files changed, 27 insertions(+), 42 deletions(-) delete mode 100644 Formula/dctl.rb diff --git a/Formula/dctl.rb b/Formula/dctl.rb deleted file mode 100644 index 0b34e0e..0000000 --- a/Formula/dctl.rb +++ /dev/null @@ -1,36 +0,0 @@ -# TODO: Automate version update process. -# Current manual workaround: -# Retrieve the sha256 hashes of files from this CI step: -# https://github.com/doseiai/engine/blob/main/.github/workflows/cli-ci-cd.yaml#L84 -# Example: https://github.com/doseiai/engine/actions/runs/7686266959/job/20944978140 - -class Dctl < Formula - desc "Command Line Interface (CLI) for Dosei." - homepage "https://dosei.ai" - license "Apache-2.0" - version "0.0.17" - - if OS.mac? && Hardware::CPU.intel? - url "https://github.com/doseiai/engine/releases/download/0.0.17/dctl-x86_64-apple-darwin.zip" - sha256 "bbec0bdb45fb7b93ca23759f2cc7920d70bd3e3d4055bb0bb818e227635eda9e" - end - - if OS.mac? && Hardware::CPU.arm? - url "https://github.com/doseiai/engine/releases/download/0.0.17/dctl-aarch64-apple-darwin.zip" - sha256 "ee3aa500c17e8e27da714d1f88590a2faeb487f2b729861b98548b56c335b850" - end - - if OS.linux? - url "https://github.com/doseiai/engine/releases/download/0.0.17/dctl-x86_64-unknown-linux-gnu.zip" - sha256 "60c42e965cd504c2e093eb5e57a71d755ef434250c924395456bc53d4201c3ff" - end - - def install - bin.install "dctl" - end - - test do - system "#{bin}/dctl --version" - end - -end diff --git a/Formula/dosei.rb b/Formula/dosei.rb index 9fb14eb..136475b 100644 --- a/Formula/dosei.rb +++ b/Formula/dosei.rb @@ -1,15 +1,36 @@ +# TODO: Automate version update process. +# Current manual workaround: +# Retrieve the sha256 hashes of files from this CI step: +# https://github.com/doseiai/engine/blob/main/.github/workflows/cli-ci-cd.yaml#L84 +# Example: https://github.com/doseiai/engine/actions/runs/7686266959/job/20944978140 + class Dosei < Formula - desc "Developer Platform for creating, deploying, and managing containerized applications." + desc "Command Line Interface (CLI) for Dosei." homepage "https://dosei.ai" - url "https://github.com/doseiai/engine/archive/refs/tags/0.0.9.tar.gz" - sha256 "4f3294d351498f34821bfaf3fc938a922e68bb76c2676be9fbb8ab15e4759c45" license "Apache-2.0" + version "0.0.21" + + if OS.mac? && Hardware::CPU.intel? + url "https://github.com/doseiai/engine/releases/download/0.0.21/dosei-x86_64-apple-darwin.zip" + sha256 "05132bdb51a0bc1af3fe48ac22d075d20e9f08a21b58fa310a9b41850b54e6e0" + end + + if OS.linux? + url "https://github.com/doseiai/engine/releases/download/0.0.21/dosei-x86_64-unknown-linux-gnu.zip" + sha256 "f44e417465a57287fc504865b7ccbdd98ea9ce1351072b44c961102738cc49b7" + end - depends_on "protobuf" => :build - depends_on "rust" => :build + if OS.mac? && Hardware::CPU.arm? + url "https://github.com/doseiai/engine/releases/download/0.0.21/dosei-aarch64-apple-darwin.zip" + sha256 "ff37c3c91d36f715e8201015fe12bad619db55b1826d376ad08c201c9374ca14" + end def install - system "make" + bin.install "dosei" + end + + test do + system "#{bin}/dosei --version" end end