-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
supabase-beta.rb
60 lines (53 loc) · 2.29 KB
/
supabase-beta.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class SupabaseBeta < Formula
desc "Supabase CLI (Beta)"
homepage "https://supabase.com"
version "1.173.0"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/supabase/cli/releases/download/v1.173.0/supabase_darwin_arm64.tar.gz"
sha256 "ad5fc30eb6a8e6effd432789fb7aa5085945567c6bad35f2a35242efc041466e"
def install
bin.install "supabase"
(bash_completion/"supabase").write `#{bin}/supabase completion bash`
(fish_completion/"supabase.fish").write `#{bin}/supabase completion fish`
(zsh_completion/"_supabase").write `#{bin}/supabase completion zsh`
end
end
if Hardware::CPU.intel?
url "https://github.com/supabase/cli/releases/download/v1.173.0/supabase_darwin_amd64.tar.gz"
sha256 "7d9a7b2d4fb39970f1627812a50b992b6477a6603e4d68620f324c031e5771d7"
def install
bin.install "supabase"
(bash_completion/"supabase").write `#{bin}/supabase completion bash`
(fish_completion/"supabase.fish").write `#{bin}/supabase completion fish`
(zsh_completion/"_supabase").write `#{bin}/supabase completion zsh`
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/supabase/cli/releases/download/v1.173.0/supabase_linux_arm64.tar.gz"
sha256 "2531181e3de9f0d252b8fc114b6eeafe79004f9c1fabbf651bae98b760005773"
def install
bin.install "supabase"
(bash_completion/"supabase").write `#{bin}/supabase completion bash`
(fish_completion/"supabase.fish").write `#{bin}/supabase completion fish`
(zsh_completion/"_supabase").write `#{bin}/supabase completion zsh`
end
end
if Hardware::CPU.intel?
url "https://github.com/supabase/cli/releases/download/v1.173.0/supabase_linux_amd64.tar.gz"
sha256 "2485751b396ef65565d127cf1f942c97477f87f7bd243beb0a57d99e580c11d4"
def install
bin.install "supabase"
(bash_completion/"supabase").write `#{bin}/supabase completion bash`
(fish_completion/"supabase.fish").write `#{bin}/supabase completion fish`
(zsh_completion/"_supabase").write `#{bin}/supabase completion zsh`
end
end
end
end