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

brew wheel formula #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions brew-installation/README.md
Original file line number Diff line number Diff line change
@@ -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`
30 changes: 30 additions & 0 deletions brew-installation/wheel.rb
Original file line number Diff line number Diff line change
@@ -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