-
Notifications
You must be signed in to change notification settings - Fork 0
/
av.rb
60 lines (53 loc) · 1.88 KB
/
av.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
53
54
55
56
57
58
59
60
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Av < Formula
desc ""
homepage "https://aviator.co"
version "0.1.3"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/aviator-co/av/releases/download/v0.1.3/av_0.1.3_darwin_x86_64.tar.gz"
sha256 "d3663cfd65132d7d9bc58c2af5b386a1501e37b37e50fc353c86bcfc224d185b"
def install
bin.install "av"
man.install Dir["man/*"]
generate_completions_from_executable(bin/"av", "completion", shells: [:bash, :zsh])
end
end
if Hardware::CPU.arm?
url "https://github.com/aviator-co/av/releases/download/v0.1.3/av_0.1.3_darwin_arm64.tar.gz"
sha256 "080001e38ddf8ca5fef1b7823dcf9d38d451a3fe996aed03e78e269f6c8b432b"
def install
bin.install "av"
man.install Dir["man/*"]
generate_completions_from_executable(bin/"av", "completion", shells: [:bash, :zsh])
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/aviator-co/av/releases/download/v0.1.3/av_0.1.3_linux_x86_64.tar.gz"
sha256 "cf22fab9d148875386090aa47c34ff5f50f9519fc771ee12311ec10ca0c63d83"
def install
bin.install "av"
man.install Dir["man/*"]
generate_completions_from_executable(bin/"av", "completion", shells: [:bash, :zsh])
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/aviator-co/av/releases/download/v0.1.3/av_0.1.3_linux_arm64.tar.gz"
sha256 "8f574d087dbc5558f028234037755e65accf0365c6b51d01183fd4909492f0b5"
def install
bin.install "av"
man.install Dir["man/*"]
generate_completions_from_executable(bin/"av", "completion", shells: [:bash, :zsh])
end
end
end
end
end