-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebrpc-gen.rb
52 lines (45 loc) · 1.6 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.25.3"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/webrpc/webrpc/releases/download/v0.25.3/webrpc-gen.darwin-amd64"
sha256 "31a5c422da53ab23113e8b80dd6c5414b19e70e1418f3a2a1b1af4aa8220d282"
def install
bin.install "webrpc-gen.darwin-amd64" => "webrpc-gen"
end
end
if Hardware::CPU.arm?
url "https://github.com/webrpc/webrpc/releases/download/v0.25.3/webrpc-gen.darwin-arm64"
sha256 "f4f520e2a425f0f329d57bd19e288087f7d0d0c7099d0809b905734dfbc5af85"
def install
bin.install "webrpc-gen.darwin-arm64" => "webrpc-gen"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/webrpc/webrpc/releases/download/v0.25.3/webrpc-gen.linux-amd64"
sha256 "883580254b532021d99eaeeb9b5c2ae52ff68c014db065d7697a01370b797706"
def install
bin.install "webrpc-gen.linux-amd64" => "webrpc-gen"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/webrpc/webrpc/releases/download/v0.25.3/webrpc-gen.linux-arm64"
sha256 "da50e7992027c573fdc2f1d321ff3de0cac80d6d6cc0d19f4751a9050e19888f"
def install
bin.install "webrpc-gen.linux-arm64" => "webrpc-gen"
end
end
end
end
end