-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdepot.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.80.1"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/depot/cli/releases/download/v2.80.1/depot_2.80.1_darwin_arm64.tar.gz"
sha256 "f8c77a857d2267f508d53d232ca43fb4181bbda7350b21d1b1cdc624a644c6d6"
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.80.1/depot_2.80.1_darwin_amd64.tar.gz"
sha256 "62867aee457e5b44bcd4d010f9d122465be6ee795302ea3c3724de804b95d377"
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.80.1/depot_2.80.1_linux_armv6.tar.gz"
sha256 "e45e32676809325cc8ef24d3d1801f462bc63319d5557659f5f9e60a69c92f99"
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.80.1/depot_2.80.1_linux_arm64.tar.gz"
sha256 "341481970ec92208fecd9ad2d709b693957810ec1b895709e645fbe2e215a2ce"
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.80.1/depot_2.80.1_linux_amd64.tar.gz"
sha256 "dd6151745d17da0f4cf44b8a39060fcb1f35185dd055263e13b0a8103e9978b6"
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