Skip to content

Commit

Permalink
Merge pull request #15 from dimitrilw/13-bart-formula
Browse files Browse the repository at this point in the history
13 bart formula
  • Loading branch information
kate-goldenring authored Oct 25, 2023
2 parents 8917628 + bd2197e commit 3deb797
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Formula/bart.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
class Bart < Formula
desc "Micro-CMS for WebAssembly and Spin"
homepage "https://developer.fermyon.com/bartholomew"
version "0.9.0"

if OS.mac? && Hardware::CPU.intel?
url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-macos-amd64.tar.gz"
sha256 "0f4e5a3844b6d5ef4b7d33a50c69ddba002874da15d2821eea5736216c6ec0d9"
end

if OS.mac? && Hardware::CPU.arm?
url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-macos-aarch64.tar.gz"
sha256 "85f30737b2eabd5426398b4edaf72d3454fed992d64c7dbeb2c630040588918b"
end

if OS.linux? && Hardware::CPU.intel?
url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-linux-amd64.tar.gz"
sha256 "6a95803c3c62f67efccbaed1ebf506fdbe458f22e31fad66622b434265539d64"
end

if OS.linux? && Hardware::CPU.arm?
url "https://github.com/fermyon/bartholomew/releases/download/v0.9.0/bart-v0.9.0-linux-aarch64.tar.gz"
sha256 "5b031b864e03883ddb740aab8fd4ffaf306d043ba86f90bc5c123cef1ea7f006"
end

def install
bin.install "bart"
end

test do
assert_match "bart 0.9.0", shell_output("#{bin}/bart --version")
end
end
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

`brew tap fermyon/tap && brew install fermyon/tap/spin`

### [bart / Bartholomew](https://github.com/fermyon/bartholomew)

`brew tap fermyon/tap && brew install fermyon/tap/bart`

## Documentation

`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).

0 comments on commit 3deb797

Please sign in to comment.