-
Notifications
You must be signed in to change notification settings - Fork 0
/
proto2yaml.rb
51 lines (43 loc) · 1.5 KB
/
proto2yaml.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Proto2yaml < Formula
desc "A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON"
homepage "https://github.com/krzko/proto2yaml"
version "0.6.5"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/krzko/proto2yaml/releases/download/v0.6.5/proto2yaml_darwin_arm64.tar.gz"
sha256 "7a01771fa7f5c24a86e3287e255744794b56c38d69e977d29dc067e85a7d0d83"
def install
bin.install "proto2yaml"
end
end
if Hardware::CPU.intel?
url "https://github.com/krzko/proto2yaml/releases/download/v0.6.5/proto2yaml_darwin_amd64.tar.gz"
sha256 "8ec58f07cc05c3dd1b159b29e18f57eea8f8f0bdc126caf0bb6222e2b5f0a64e"
def install
bin.install "proto2yaml"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/krzko/proto2yaml/releases/download/v0.6.5/proto2yaml_linux_amd64.tar.gz"
sha256 "d2ad47b1f3481f33148fccd4ecc4543b44ddb32404210d815ece97c09dd277a4"
def install
bin.install "proto2yaml"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/krzko/proto2yaml/releases/download/v0.6.5/proto2yaml_linux_arm64.tar.gz"
sha256 "3da692c9339721d91e9e24b4a28aaa4cdae9504382ae5dbf8a9a34361c381909"
def install
bin.install "proto2yaml"
end
end
end
test do
system "#{bin}/proto2yaml -v"
end
end