-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebrpc-test.rb
52 lines (45 loc) · 1.61 KB
/
webrpc-test.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 WebrpcTest < Formula
desc "generate source code for your target language from webrpc schema"
homepage "https://github.com/webrpc/webrpc"
version "0.24.0"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/webrpc/webrpc/releases/download/v0.24.0/webrpc-test.darwin-amd64"
sha256 "72cf5c771a321b13d1f14b5b8b55137cd73534a68f34f75cc27d75ecb0976eb0"
def install
bin.install "webrpc-test.darwin-amd64" => "webrpc-test"
end
end
if Hardware::CPU.arm?
url "https://github.com/webrpc/webrpc/releases/download/v0.24.0/webrpc-test.darwin-arm64"
sha256 "2916ab632624308d63153eba07238ef33b23325cf07a9bc4a2beb53ee5d027f4"
def install
bin.install "webrpc-test.darwin-arm64" => "webrpc-test"
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.24.0/webrpc-test.linux-amd64"
sha256 "fd9a639d0d1a71895f006deddb60f50c1bff12d1d38eaa74b9d94344cc7525db"
def install
bin.install "webrpc-test.linux-amd64" => "webrpc-test"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/webrpc/webrpc/releases/download/v0.24.0/webrpc-test.linux-arm64"
sha256 "d15f2e29b64a01bf15f5e98e4b3c3317e6f12cca84af96bba5f7e6cb6137a37d"
def install
bin.install "webrpc-test.linux-arm64" => "webrpc-test"
end
end
end
end
end