-
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.23.0"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/webrpc/webrpc/releases/download/v0.23.0/webrpc-gen.darwin-amd64"
sha256 "4ff1a142445e84a3515107af623bac1dda3c3f4ac1a25680ac9e1d8a51682609"
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.23.0/webrpc-gen.darwin-arm64"
sha256 "f6baaf1e521bf3b0aa03dd9bb5126c6fb8a77cf274a4a39247d5aab20392942e"
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.23.0/webrpc-gen.linux-amd64"
sha256 "527817feb30d3e1972924d55af5beb248522d4d90feb6fb0c7ba31bffdf6e1b8"
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.23.0/webrpc-gen.linux-arm64"
sha256 "52997c924d57b62c36c853fdbe55d77d0ce00036838322d43ac0856d0100226e"
def install
bin.install "webrpc-gen.linux-arm64" => "webrpc-gen"
end
end
end
end
end