-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathglow.rb
67 lines (60 loc) · 2.31 KB
/
glow.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
61
62
63
64
65
66
67
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Glow < Formula
desc "Render markdown on the CLI, with pizzazz!"
homepage "https://charm.sh/"
version "2.0.0"
on_macos do
on_intel do
url "https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_Darwin_x86_64.tar.gz"
sha256 "64d892ca7866752f260722ca83f92746446a03e733cedbc2897c353951abe274"
def install
bin.install "glow"
bash_completion.install "completions/glow.bash" => "glow"
zsh_completion.install "completions/glow.zsh" => "_glow"
fish_completion.install "completions/glow.fish"
man1.install "manpages/glow.1.gz"
end
end
on_arm do
url "https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_Darwin_arm64.tar.gz"
sha256 "04175e0e7e949fd5a0a340cbb11be057c04ae7c49ea85f06679a71340cc4bcb6"
def install
bin.install "glow"
bash_completion.install "completions/glow.bash" => "glow"
zsh_completion.install "completions/glow.zsh" => "_glow"
fish_completion.install "completions/glow.fish"
man1.install "manpages/glow.1.gz"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_Linux_x86_64.tar.gz"
sha256 "c16067fc16455211d9a239e931b00982fb883aef4b2c89cfa30a992ef2058ae5"
def install
bin.install "glow"
bash_completion.install "completions/glow.bash" => "glow"
zsh_completion.install "completions/glow.zsh" => "_glow"
fish_completion.install "completions/glow.fish"
man1.install "manpages/glow.1.gz"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_Linux_arm64.tar.gz"
sha256 "69317a393ee8e6c64e2eb49718d053d5d98e1bf3e67b89e8965ead0e8b12004c"
def install
bin.install "glow"
bash_completion.install "completions/glow.bash" => "glow"
zsh_completion.install "completions/glow.zsh" => "_glow"
fish_completion.install "completions/glow.fish"
man1.install "manpages/glow.1.gz"
end
end
end
end
end