-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit-spice.rb
71 lines (62 loc) · 2.24 KB
/
git-spice.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class GitSpice < Formula
desc "A tool for stacking Git branches."
homepage "https://abhinav.github.io/git-spice/"
version "0.12.0"
license "GPL-3.0-or-later"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/abhinav/git-spice/releases/download/v0.12.0/git-spice.Darwin-x86_64.tar.gz"
sha256 "0d2b17228b59908852f902a4ef2364d93bae115a347fa819bb3b0a618c0909c5"
def install
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
end
end
if Hardware::CPU.arm?
url "https://github.com/abhinav/git-spice/releases/download/v0.12.0/git-spice.Darwin-arm64.tar.gz"
sha256 "e585f3c12aa24b6bce49c5d2d8d256f4a72fbf5185399e171e07a62a0548d256"
def install
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/abhinav/git-spice/releases/download/v0.12.0/git-spice.Linux-x86_64.tar.gz"
sha256 "4170fc3603bc2ad76dc634e017561aff6a80b7f9ec4d325d0f86ce9384824407"
def install
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/abhinav/git-spice/releases/download/v0.12.0/git-spice.Linux-armv6.tar.gz"
sha256 "5a3ab61d09042ff5602048372ab03b1ddfa30487ff5e2ec9d92971171f178cfc"
def install
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/abhinav/git-spice/releases/download/v0.12.0/git-spice.Linux-aarch64.tar.gz"
sha256 "3b6e7ecdc2092d17d1c7b6c27c862da21cf6f6560ac5323c6889faad3f776739"
def install
bin.install "gs"
generate_completions_from_executable(bin/"gs", "shell", "completion")
end
end
end
end
test do
system "#{bin}/gs --version"
end
end