-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class SpeakeasyAT0201 < Formula
desc "The Speakeasy CLI for interacting with the Speakeasy Platform"
homepage "https://www.speakeasyapi.dev"
version "0.20.1"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v0.20.1/speakeasy_0.20.1_Darwin_x86_64.tar.gz"
sha256 "097e1e409ba53c43cbfc3fa479fc6b12eb7ee54bed4e394f49958dd3bf9ecd52"
def install
bin.install "speakeasy"
end
end
if Hardware::CPU.arm?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v0.20.1/speakeasy_0.20.1_Darwin_arm64.tar.gz"
sha256 "8729f4b8c17da00d6e0f491cec11a8222522017b02e3b32d3cde0316a5d859ab"
def install
bin.install "speakeasy"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v0.20.1/speakeasy_0.20.1_Linux_arm64.tar.gz"
sha256 "1b1640c7d84a2034147ace5236df67aa885c62e9a43f6ef98e9f825263fab6b8"
def install
bin.install "speakeasy"
end
end
if Hardware::CPU.intel?
url "https://github.com/speakeasy-api/speakeasy/releases/download/v0.20.1/speakeasy_0.20.1_Linux_x86_64.tar.gz"
sha256 "5524585ccd0da9e5e08eebdd1c01cbc6e40501acdf70a1d009564cc8d384def1"
def install
bin.install "speakeasy"
end
end
end
test do
system "#{bin}/speakeasy --version"
end
end