-
Notifications
You must be signed in to change notification settings - Fork 5
/
pop.rb
63 lines (56 loc) · 2.22 KB
/
pop.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Pop < Formula
desc "Send emails from your terminal. 📬"
homepage "https://charm.sh/"
version "0.2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/pop/releases/download/v0.2.0/pop_0.2.0_Darwin_x86_64.tar.gz"
sha256 "f77de26925c8286b9f6cd3f57fc20efe7bb5a9f30413adda5e346f57a46e0db1"
def install
bin.install "pop"
bash_completion.install "completions/pop.bash" => "pop"
zsh_completion.install "completions/pop.zsh" => "_pop"
fish_completion.install "completions/pop.fish"
man1.install "manpages/pop.1.gz"
end
end
if Hardware::CPU.arm?
url "https://github.com/charmbracelet/pop/releases/download/v0.2.0/pop_0.2.0_Darwin_arm64.tar.gz"
sha256 "515bdbab3491e717e8897fb5085f15ca2ac89e5c99be9a30f5be5028861ebeb5"
def install
bin.install "pop"
bash_completion.install "completions/pop.bash" => "pop"
zsh_completion.install "completions/pop.zsh" => "_pop"
fish_completion.install "completions/pop.fish"
man1.install "manpages/pop.1.gz"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/pop/releases/download/v0.2.0/pop_0.2.0_Linux_x86_64.tar.gz"
sha256 "6ca76d6554dbe6c6cee6d18ef042c4900c7ba46254b7f971dacd8b664ccbfada"
def install
bin.install "pop"
bash_completion.install "completions/pop.bash" => "pop"
zsh_completion.install "completions/pop.zsh" => "_pop"
fish_completion.install "completions/pop.fish"
man1.install "manpages/pop.1.gz"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/pop/releases/download/v0.2.0/pop_0.2.0_Linux_arm64.tar.gz"
sha256 "dee977361fda3023e7c80af3bc30959e04cd1e003f976737d7914642d3b9a410"
def install
bin.install "pop"
bash_completion.install "completions/pop.bash" => "pop"
zsh_completion.install "completions/pop.zsh" => "_pop"
fish_completion.install "completions/pop.fish"
man1.install "manpages/pop.1.gz"
end
end
end
end