From c375ac8788ae140f960228d8bb7840ede4d41794 Mon Sep 17 00:00:00 2001 From: Ashutosh Jha Date: Mon, 18 Dec 2023 21:56:57 +0530 Subject: [PATCH] brew wheel formula --- brew-installation/README.md | 7 +++++++ brew-installation/wheel.rb | 30 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 brew-installation/README.md create mode 100644 brew-installation/wheel.rb diff --git a/brew-installation/README.md b/brew-installation/README.md new file mode 100644 index 0000000..5030e89 --- /dev/null +++ b/brew-installation/README.md @@ -0,0 +1,7 @@ +### Wheel Brew Installation Formula + +To install wheel using the formula `brew install --build-from-source wheel.rb --verbose --debug`. Kindly make sure that you are in this directory i.e. `cd brew-installation` before running the above command + +To test the installation from the formula `brew test wheel` It basically checks for the version installed + +To run audit run `brew audit --strict wheel` diff --git a/brew-installation/wheel.rb b/brew-installation/wheel.rb new file mode 100644 index 0000000..eb8e028 --- /dev/null +++ b/brew-installation/wheel.rb @@ -0,0 +1,30 @@ +class Wheel < Formula + desc "ComposeDB and Ceramic Setup Tool" + homepage "https://ceramic.network/" + url "https://github.com/ceramicstudio/wheel/archive/refs/tags/v0.2.1.tar.gz" + sha256 "4025dc804f1e1d98852c555049f314bb74f20f0a6ff60cdee15470e85ebb2dc9" + license all_of: ["MIT", "Apache-2.0"] + head "https://github.com/ceramicstudio/wheel.git", branch: "main" + + livecheck do + url :stable + regex(/^v?(\d+(?:\.\d+)+)$/i) + end + + depends_on "curl" => :build + depends_on "jq" => :build + depends_on "node" + + def install + system "./wheel.sh" + system "./wheel" + bin.install "wheel" + ENV.deparallelize + end + + test do + # Testing the version + assert_match "wheel-3box #{version}", shell_output("#{bin}/wheel --version") + end + end + \ No newline at end of file