-
Notifications
You must be signed in to change notification settings - Fork 0
/
depot.rb
100 lines (81 loc) · 3.64 KB
/
depot.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Depot < Formula
desc "The official CLI for Depot."
homepage "https://depot.dev"
version "2.78.0"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/depot/cli/releases/download/v2.78.0/depot_2.78.0_darwin_arm64.tar.gz"
sha256 "0b559610e098ff282474552567c240194424859ed2b7360f44d3f8b582e579bc"
def install
bin.install "bin/depot"
bash_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "bash")
fish_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "fish")
zsh_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "zsh")
(bash_completion/"depot").write bash_comp
(fish_completion/"depot.fish").write fish_comp
(zsh_completion/"_depot").write zsh_comp
end
end
if Hardware::CPU.intel?
url "https://github.com/depot/cli/releases/download/v2.78.0/depot_2.78.0_darwin_amd64.tar.gz"
sha256 "3c77cef2b862232abbfc18778f42a39525821ddfffeef99bb5291bc719f676bc"
def install
bin.install "bin/depot"
bash_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "bash")
fish_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "fish")
zsh_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "zsh")
(bash_completion/"depot").write bash_comp
(fish_completion/"depot.fish").write fish_comp
(zsh_completion/"_depot").write zsh_comp
end
end
end
on_linux do
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/depot/cli/releases/download/v2.78.0/depot_2.78.0_linux_armv6.tar.gz"
sha256 "cb81d8ae390299fc6f147627d74a0c4e04729228201edf8ac6957803a68a2936"
def install
bin.install "bin/depot"
bash_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "bash")
fish_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "fish")
zsh_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "zsh")
(bash_completion/"depot").write bash_comp
(fish_completion/"depot.fish").write fish_comp
(zsh_completion/"_depot").write zsh_comp
end
end
if Hardware::CPU.intel?
url "https://github.com/depot/cli/releases/download/v2.78.0/depot_2.78.0_linux_amd64.tar.gz"
sha256 "321d7c8d4b206cc631e4d14b19deddd5be6cf6f0d2c991eaa83af2452fd46ee7"
def install
bin.install "bin/depot"
bash_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "bash")
fish_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "fish")
zsh_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "zsh")
(bash_completion/"depot").write bash_comp
(fish_completion/"depot.fish").write fish_comp
(zsh_completion/"_depot").write zsh_comp
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/depot/cli/releases/download/v2.78.0/depot_2.78.0_linux_arm64.tar.gz"
sha256 "b0d9649887c5a24250d3d1e7e4f4f99e0be3a01f523f2119fafb5c1d47aeb478"
def install
bin.install "bin/depot"
bash_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "bash")
fish_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "fish")
zsh_comp = Utils.safe_popen_read("#{bin}/depot", "completion", "zsh")
(bash_completion/"depot").write bash_comp
(fish_completion/"depot.fish").write fish_comp
(zsh_completion/"_depot").write zsh_comp
end
end
end
test do
system "#{bin}/depot version"
end
end