-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathglow.rb
More file actions
61 lines (56 loc) · 2.29 KB
/
glow.rb
File metadata and controls
61 lines (56 loc) · 2.29 KB
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
# 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.1.1"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/glow/releases/download/v2.1.1/glow_2.1.1_Darwin_x86_64.tar.gz"
sha256 "91334ebc659b44193327a6e2d198aa4e6c2953b1e003be00c983870685e9161b"
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
if Hardware::CPU.arm?
url "https://github.com/charmbracelet/glow/releases/download/v2.1.1/glow_2.1.1_Darwin_arm64.tar.gz"
sha256 "234a20a7d0cebc775cdc77ecd62d28da9479364a122b52d8bac9adf1312b860d"
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
if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/glow/releases/download/v2.1.1/glow_2.1.1_Linux_x86_64.tar.gz"
sha256 "59106b08be69b2a0bda1178327bbb7accd584e7c113ba3d2f5ef6e48ff3ac27f"
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
if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/glow/releases/download/v2.1.1/glow_2.1.1_Linux_arm64.tar.gz"
sha256 "ab12a703cc6efd06caf24860344a2e8bc2518055fdd986f98eb761c47917ef3d"
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