-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtvctl.rb
51 lines (43 loc) · 1.39 KB
/
tvctl.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 Tvctl < Formula
desc "A command-line utility to interact with TradingView"
homepage "https://github.com/krzko/tvctl"
version "0.7.4"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/krzko/tvctl/releases/download/v0.7.4/tvctl_darwin_amd64.tar.gz"
sha256 "933555ded3bdefd47dbf6de645648f007e190bb1248c9b446c63239054547ce0"
def install
bin.install "tvctl"
end
end
if Hardware::CPU.arm?
url "https://github.com/krzko/tvctl/releases/download/v0.7.4/tvctl_darwin_arm64.tar.gz"
sha256 "90155802a58fef6f0bb4408b6dc16681eeed6417116745af362ea49bce9ee5b3"
def install
bin.install "tvctl"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/krzko/tvctl/releases/download/v0.7.4/tvctl_linux_arm64.tar.gz"
sha256 "f542cd0d90c3b5f16cdb293dff33dd93bf7b00d76f7708735a7028b11fda68b2"
def install
bin.install "tvctl"
end
end
if Hardware::CPU.intel?
url "https://github.com/krzko/tvctl/releases/download/v0.7.4/tvctl_linux_amd64.tar.gz"
sha256 "4e7db5d93f798622434e0f5a36316585e47d0c9012e20f9307cd80562ef08652"
def install
bin.install "tvctl"
end
end
end
test do
system "#{bin}/tvctl -v"
end
end