-
Notifications
You must be signed in to change notification settings - Fork 1
/
browsh.rb
60 lines (51 loc) · 1.82 KB
/
browsh.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 Browsh < Formula
desc "The modern, text-based browser"
homepage "https://www.brow.sh"
version "1.8.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_darwin_arm64.tar.gz"
sha256 "5b42e7b039b7e98d4edc7ec7ec4146f9f790a965892e19b77b5bd2a17adc7932"
def install
bin.install "browsh"
end
end
if Hardware::CPU.intel?
url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_darwin_amd64.tar.gz"
sha256 "3d1ec4480610c931f4bf64b461ba0c71e21cdae192a86e46b8b763f8442fa63c"
def install
bin.install "browsh"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_linux_amd64"
sha256 "30a6b4e5220be088bce9b2416164eed7d3d8de76741e6a71d24a35b2fe6f1ae7"
def install
bin.install "browsh_1.8.0_linux_amd64" => "browsh"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_linux_armv6"
sha256 "e799299732d9ebc6885c27e483fe8c43d452f9052f09df1d674600cba5eb2177"
def install
bin.install "browsh_1.8.0_linux_armv6" => "browsh"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/browsh-org/browsh/releases/download/v1.8.0/browsh_1.8.0_linux_arm64"
sha256 "e5e3ed418e0930d0ec12394894269983f6e6da80ff60d03909e2e5c307971a99"
def install
bin.install "browsh_1.8.0_linux_arm64" => "browsh"
end
end
end
def caveats; <<~EOS
You need Firefox 57 or newer to run Browsh
EOS
end
end