main
rb 28 lines 823 Bytes
Raw
1 # frozen_string_literal: true
2
3 # Homebrew formula for the Onde Inference CLI (`onde` binary).
4 class Onde < Formula
5 desc 'Command-line interface for Onde Inference'
6 homepage 'https://ondeinference.com'
7 version '0.4.3'
8 license 'MIT OR Apache-2.0'
9
10 on_macos do
11 on_arm do
12 url 'https://github.com/ondeinference/onde-cli/releases/download/v0.4.3/onde-macos-arm64.tar.gz'
13 sha256 '7b19af5b8b42e8d33962d130950eba7001fa8a24d0b14af940bb0db95565322e'
14 end
15 on_intel do
16 url 'https://github.com/ondeinference/onde-cli/releases/download/v0.4.3/onde-macos-amd64.tar.gz'
17 sha256 '1ff039ac26833e712f61d427b359b01b8e282fdb254493a4f446335810241d99'
18 end
19 end
20
21 def install
22 bin.install 'onde'
23 end
24
25 test do
26 assert_match version.to_s, shell_output("#{bin}/onde --version", 1)
27 end
28 end