/
webrpc-gen.rb
52 lines (45 loc) · 1.55 KB
/
webrpc-gen.rb
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 WebrpcGen < Formula
desc "generate source code for your target language from webrpc schema"
homepage "https://github.com/webrpc/webrpc"
version "0.18.7"
license "MIT"
on_macos do
on_intel do
url "https://github.com/webrpc/webrpc/releases/download/v0.18.7/webrpc-gen.darwin-amd64"
sha256 "7950cedf37780f17bdf837ad6fbd258e863cc3ec9150a62918f675375b864ca8"
def install
bin.install "webrpc-gen.darwin-amd64" => "webrpc-gen"
end
end
on_arm do
url "https://github.com/webrpc/webrpc/releases/download/v0.18.7/webrpc-gen.darwin-arm64"
sha256 "66f5e90ba733e08b9c4de170a4fa697384cf669bd2febd01296d7a9182d1330e"
def install
bin.install "webrpc-gen.darwin-arm64" => "webrpc-gen"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/webrpc/webrpc/releases/download/v0.18.7/webrpc-gen.linux-amd64"
sha256 "00cd297417571bc7707d08047f3553b0243e9189005cfefd8f50343c9641b45e"
def install
bin.install "webrpc-gen.linux-amd64" => "webrpc-gen"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/webrpc/webrpc/releases/download/v0.18.7/webrpc-gen.linux-arm64"
sha256 "a77c668e11ac974bb38e626e1f9899fc6076b95a65720966fa48d2e27cedf0fd"
def install
bin.install "webrpc-gen.linux-arm64" => "webrpc-gen"
end
end
end
end
end