-
Notifications
You must be signed in to change notification settings - Fork 0
/
spacehopper.rb
51 lines (43 loc) · 1.66 KB
/
spacehopper.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Spacehopper < Formula
desc "Reboot annoying CLI programs with irritating failure modes."
homepage "https://github.com/Emberwalker/spacehopper"
version "0.0.5"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/Emberwalker/spacehopper/releases/download/v0.0.5/spacehopper_0.0.5_darwin_amd64"
sha256 "215212993e9ace278edb31d3b927a5f1230c0a7ad781c1c9477e8e77e52be0e0"
def install
bin.install "spacehopper_0.0.5_darwin_amd64" => "spacehopper"
end
end
if Hardware::CPU.arm?
url "https://github.com/Emberwalker/spacehopper/releases/download/v0.0.5/spacehopper_0.0.5_darwin_arm64"
sha256 "2c0050d7541056027969009c1b7081afddca013b554379ef2be5c3e3779ba42b"
def install
bin.install "spacehopper_0.0.5_darwin_arm64" => "spacehopper"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/Emberwalker/spacehopper/releases/download/v0.0.5/spacehopper_0.0.5_linux_arm64"
sha256 "605345666f77568ce84b2ec56d9a2ac6d9c82b43e165c0c534218ef5ed3a678e"
def install
bin.install "spacehopper_0.0.5_linux_arm64" => "spacehopper"
end
end
if Hardware::CPU.intel?
url "https://github.com/Emberwalker/spacehopper/releases/download/v0.0.5/spacehopper_0.0.5_linux_amd64"
sha256 "9b89fe3a1f9adc8d71c0b8a42d48409a97ce3bab35c565a0867ca10b3600a9e9"
def install
bin.install "spacehopper_0.0.5_linux_amd64" => "spacehopper"
end
end
end
test do
system "#{bin}/program --version"
end
end