-
Notifications
You must be signed in to change notification settings - Fork 5
/
melt.rb
81 lines (73 loc) · 2.86 KB
/
melt.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Melt < Formula
desc "Backup and restore Ed25519 SSH keys with seed words"
homepage "https://charm.sh/"
version "0.6.2"
on_macos do
on_intel do
url "https://github.com/charmbracelet/melt/releases/download/v0.6.2/melt_0.6.2_Darwin_x86_64.tar.gz"
sha256 "e96ce7634f028ca60c89239795d0e0d4a02040bf62d1d91474fc2ac8bea677e5"
def install
bin.install "melt"
bash_completion.install "completions/melt.bash" => "melt"
zsh_completion.install "completions/melt.zsh" => "_melt"
fish_completion.install "completions/melt.fish"
man1.install "manpages/melt.1.gz"
end
end
on_arm do
url "https://github.com/charmbracelet/melt/releases/download/v0.6.2/melt_0.6.2_Darwin_arm64.tar.gz"
sha256 "64a35de143145d4ffd5b21804a5d64a1a677db9ddf2539cdc29a5e2cff9d027d"
def install
bin.install "melt"
bash_completion.install "completions/melt.bash" => "melt"
zsh_completion.install "completions/melt.zsh" => "_melt"
fish_completion.install "completions/melt.fish"
man1.install "manpages/melt.1.gz"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/melt/releases/download/v0.6.2/melt_0.6.2_Linux_x86_64.tar.gz"
sha256 "82f543dcade2244a86196a506a28dcd41b55d5e0be71d692d291fc4f6803ac82"
def install
bin.install "melt"
bash_completion.install "completions/melt.bash" => "melt"
zsh_completion.install "completions/melt.zsh" => "_melt"
fish_completion.install "completions/melt.fish"
man1.install "manpages/melt.1.gz"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/melt/releases/download/v0.6.2/melt_0.6.2_Linux_armv7.tar.gz"
sha256 "deaa82d0ba3e8cf67e3ea9e1ad4cd2267f80bbe23d9ec854e628004915c72d24"
def install
bin.install "melt"
bash_completion.install "completions/melt.bash" => "melt"
zsh_completion.install "completions/melt.zsh" => "_melt"
fish_completion.install "completions/melt.fish"
man1.install "manpages/melt.1.gz"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/melt/releases/download/v0.6.2/melt_0.6.2_Linux_arm64.tar.gz"
sha256 "12cdf4ee09b5fea8bba9388495912c19c784c844f407dddadb86e1d2b7b63acd"
def install
bin.install "melt"
bash_completion.install "completions/melt.bash" => "melt"
zsh_completion.install "completions/melt.zsh" => "_melt"
fish_completion.install "completions/melt.fish"
man1.install "manpages/melt.1.gz"
end
end
end
end
end