-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdepot.rb
More file actions
100 lines (81 loc) · 3.66 KB
/
depot.rb
File metadata and controls
100 lines (81 loc) · 3.66 KB
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.101.47"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/depot/cli/releases/download/v2.101.47/depot_2.101.47_darwin_arm64.tar.gz"
sha256 "3262a3648bc9e30f2725c7b8fef01f4496e74804790bca9e7623ea59444dabb3"
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.101.47/depot_2.101.47_darwin_amd64.tar.gz"
sha256 "d1e42777ff788a80e5399f99b6ec21bfb191942031af60b639ea08ce1edd8d4f"
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.101.47/depot_2.101.47_linux_armv6.tar.gz"
sha256 "780e83b300dcf204d83a897b018587eb64632e3e524f84ae47de5e0fba0da130"
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.101.47/depot_2.101.47_linux_arm64.tar.gz"
sha256 "cec27dbf22a6774f6bb1014945c184746a64cdaa6f2032913ce18c2fe54112f8"
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.101.47/depot_2.101.47_linux_amd64.tar.gz"
sha256 "1d161e7253f18a183364bbe73aff9ab2aba5f3c8547b8a79d08b904ff92ce28b"
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