61 lines
2.2 KiB
Ruby
61 lines
2.2 KiB
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
class {{ .FormulaName }} < Formula
|
|
desc "{{ .Description }}"
|
|
homepage "https://supabase.com"
|
|
version "{{ .Version }}"
|
|
license "MIT"
|
|
|
|
on_macos do
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/supabase/cli/releases/download/v{{ .Version }}/supabase_darwin_arm64.tar.gz"
|
|
sha256 "{{ .Checksum.supabase_darwin_arm64 }}"
|
|
|
|
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/v{{ .Version }}/supabase_darwin_amd64.tar.gz"
|
|
sha256 "{{ .Checksum.supabase_darwin_amd64 }}"
|
|
|
|
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/v{{ .Version }}/supabase_linux_arm64.tar.gz"
|
|
sha256 "{{ .Checksum.supabase_linux_arm64 }}"
|
|
|
|
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/v{{ .Version }}/supabase_linux_amd64.tar.gz"
|
|
sha256 "{{ .Checksum.supabase_linux_amd64 }}"
|
|
|
|
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
|