-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhowto.rb
52 lines (45 loc) · 1.46 KB
/
howto.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Howto < Formula
desc "A humble command-line assistant"
homepage "https://github.com/nalgeon/howto"
version "0.2.1"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/nalgeon/howto/releases/download/v0.2.1/howto_0.2.1_darwin_amd64.tar.gz"
sha256 "48f79c493e6882db5f54a7f79df3d26a14a92d2e8bafb12bae68d2c660b361ec"
def install
bin.install "howto"
end
end
if Hardware::CPU.arm?
url "https://github.com/nalgeon/howto/releases/download/v0.2.1/howto_0.2.1_darwin_arm64.tar.gz"
sha256 "25dd584e712fe46f297e1cc1ae04d836c82c11ca3bf95e873378a6c60761237b"
def install
bin.install "howto"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/nalgeon/howto/releases/download/v0.2.1/howto_0.2.1_linux_amd64.tar.gz"
sha256 "5023b498cfb9c59b65f0bb3d81b034357d3c31f2f7c234e0e856509e55e75c4d"
def install
bin.install "howto"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/nalgeon/howto/releases/download/v0.2.1/howto_0.2.1_linux_arm64.tar.gz"
sha256 "5f8a090b5c212c170ab53cd40a93bc797688b9b241d30872c5cd9987cd9e0ae7"
def install
bin.install "howto"
end
end
end
end
end