From fed5659e7ed07102d6a56a49196f72740b6158e9 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Thu, 5 Feb 2026 14:33:16 +0800 Subject: [PATCH 1/4] feat: add native binaries to beta package --- supabase-beta.rb | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/supabase-beta.rb b/supabase-beta.rb index 372f976..70d6069 100644 --- a/supabase-beta.rb +++ b/supabase-beta.rb @@ -13,11 +13,31 @@ class SupabaseBeta < Formula url "https://github.com/supabase/cli/releases/download/v2.75.3/supabase_darwin_arm64.tar.gz" sha256 "9183b35a53301155e75e132a70386c73745a2cf9bf780938036a681adcae7d27" + # Additional resource for native binaries + resource "postgres" do + url "https://nightly.link/supabase/postgres/actions/runs/21695713500/supabase-postgres-darwin-arm64.zip" + sha256 "dd86bfee4e777ce9e4bdcaaac22af0ad21e3e0f8c68030fb48cb9d143f5c6716" + end + resource "postgrest" do + url "https://github.com/PostgREST/postgrest/releases/download/v14.4/postgrest-v14.4-macos-aarch64.tar.xz" + sha256 "cd425a228700856c092f7cd5d84345b0e2517e5426dedb8c1d8dacb6805974e3" + end + 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` + + # Install binary resources + resource("postgres").stage do + bin.install Dir["bin/*"] + share.install Dir["share/*"] + lib.install Dir["lib/*"] + end + resource("postgrest").stage do + bin.install "postgrest" + end end end if Hardware::CPU.intel? @@ -38,22 +58,78 @@ def install url "https://github.com/supabase/cli/releases/download/v2.75.3/supabase_linux_arm64.tar.gz" sha256 "66a453fb3a9b2e6289a89aded1eaa56fe075c3c65a02770ae52f5c3ac27aaa7f" + # Additional resource for native binaries + resource "postgres" do + url "https://nightly.link/supabase/postgres/actions/runs/21695713500/supabase-postgres-linux-arm64.zip" + sha256 "6aca2a015ebb8be0245ba310f1751ac49d5c2fba2809eddf83545aad0696b89b" + end + resource "auth" do + url "https://github.com/supabase/auth/releases/download/v2.186.0/auth-v2.186.0-arm64.tar.gz" + sha256 "61aa53ea5e2d7e4f50f2b10312c1e6b73e4767b753815239956082fdcc623270" + end + resource "postgrest" do + url "https://github.com/PostgREST/postgrest/releases/download/v14.4/postgrest-v14.4-ubuntu-aarch64.tar.xz" + sha256 "5223ef63716590ea4aa7bd9f0fbec43903dad090612f4e753a8eafcba295c0a9" + end + 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` + + # Install binary resources + resource("postgres").stage do + bin.install Dir["bin/*"] + share.install Dir["share/*"] + lib.install Dir["lib/*"] + end + resource("auth").stage do + bin.install "auth" + share.install Dir["migrations"] + end + resource("postgrest").stage do + bin.install "postgrest" + end end end if Hardware::CPU.intel? url "https://github.com/supabase/cli/releases/download/v2.75.3/supabase_linux_amd64.tar.gz" sha256 "736390c7abb17528cd17e09b029cf921c3d4eaef62f8ae80a4785b5d5fd85bd3" + # Additional resource for native binaries + resource "postgres" do + url "https://nightly.link/supabase/postgres/actions/runs/21695713500/supabase-postgres-linux-x64.zip" + sha256 "e6a5edba40f1aa693a80affd6fce57c2b39751cc6d04b9a33c6ebb4458edf0db" + end + resource "auth" do + url "https://github.com/supabase/auth/releases/download/v2.186.0/auth-v2.186.0-x86.tar.gz" + sha256 "2683b9549e922d0644621129fdabd7edb8b78c35274e133e61a3280ad9675161" + end + resource "postgrest" do + url "https://github.com/PostgREST/postgrest/releases/download/v14.4/postgrest-v14.4-linux-static-x86-64.tar.xz" + sha256 "3fc6e82c34a98a97df5ffafd86fbd7b9e21e03ef2d733d43e7ee6d0ce113568f" + end + 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` + + # Install binary resources + resource("postgres").stage do + bin.install Dir["bin/*"] + share.install Dir["share/*"] + lib.install Dir["lib/*"] + end + resource("auth").stage do + bin.install "auth" + share.install Dir["migrations"] + end + resource("postgrest").stage do + bin.install "postgrest" + end end end end From bd091386ac9cfb0a4a2b6d4acff452d43191716f Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Thu, 5 Feb 2026 17:06:07 +0800 Subject: [PATCH 2/4] chore: include dot bin files --- supabase-beta.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supabase-beta.rb b/supabase-beta.rb index 70d6069..bc90031 100644 --- a/supabase-beta.rb +++ b/supabase-beta.rb @@ -31,7 +31,7 @@ def install # Install binary resources resource("postgres").stage do - bin.install Dir["bin/*"] + bin.install Dir.glob('bin/*', File::FNM_DOTMATCH) - %w[bin/. bin/..] share.install Dir["share/*"] lib.install Dir["lib/*"] end @@ -80,7 +80,7 @@ def install # Install binary resources resource("postgres").stage do - bin.install Dir["bin/*"] + bin.install Dir.glob('bin/*', File::FNM_DOTMATCH) - %w[bin/. bin/..] share.install Dir["share/*"] lib.install Dir["lib/*"] end @@ -119,7 +119,7 @@ def install # Install binary resources resource("postgres").stage do - bin.install Dir["bin/*"] + bin.install Dir.glob('bin/*', File::FNM_DOTMATCH) - %w[bin/. bin/..] share.install Dir["share/*"] lib.install Dir["lib/*"] end From 493e36c4b68cc3f64b97cb45216d296d7570f4ce Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Thu, 5 Feb 2026 17:24:33 +0800 Subject: [PATCH 3/4] chore: use consistent quotes --- supabase-beta.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supabase-beta.rb b/supabase-beta.rb index bc90031..34f2b91 100644 --- a/supabase-beta.rb +++ b/supabase-beta.rb @@ -31,7 +31,7 @@ def install # Install binary resources resource("postgres").stage do - bin.install Dir.glob('bin/*', File::FNM_DOTMATCH) - %w[bin/. bin/..] + bin.install Dir.glob("bin/*", File::FNM_DOTMATCH) - %w[bin/. bin/..] share.install Dir["share/*"] lib.install Dir["lib/*"] end @@ -80,7 +80,7 @@ def install # Install binary resources resource("postgres").stage do - bin.install Dir.glob('bin/*', File::FNM_DOTMATCH) - %w[bin/. bin/..] + bin.install Dir.glob("bin/*", File::FNM_DOTMATCH) - %w[bin/. bin/..] share.install Dir["share/*"] lib.install Dir["lib/*"] end @@ -119,7 +119,7 @@ def install # Install binary resources resource("postgres").stage do - bin.install Dir.glob('bin/*', File::FNM_DOTMATCH) - %w[bin/. bin/..] + bin.install Dir.glob("bin/*", File::FNM_DOTMATCH) - %w[bin/. bin/..] share.install Dir["share/*"] lib.install Dir["lib/*"] end From d50f19bb889d631e6bc4ff2b9ed5a74e85d6a60f Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Fri, 6 Feb 2026 11:46:25 +0800 Subject: [PATCH 4/4] chore: update package path --- supabase-beta.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/supabase-beta.rb b/supabase-beta.rb index 34f2b91..c2e6b93 100644 --- a/supabase-beta.rb +++ b/supabase-beta.rb @@ -15,8 +15,8 @@ class SupabaseBeta < Formula # Additional resource for native binaries resource "postgres" do - url "https://nightly.link/supabase/postgres/actions/runs/21695713500/supabase-postgres-darwin-arm64.zip" - sha256 "dd86bfee4e777ce9e4bdcaaac22af0ad21e3e0f8c68030fb48cb9d143f5c6716" + url "https://nightly.link/supabase/postgres/actions/runs/21728058034/supabase-postgres-darwin-arm64.zip" + sha256 "39b7e977535c4064a1f082a09bd5a36981bf28f271869822c7b526ca5feeb6c0" end resource "postgrest" do url "https://github.com/PostgREST/postgrest/releases/download/v14.4/postgrest-v14.4-macos-aarch64.tar.xz" @@ -60,8 +60,8 @@ def install # Additional resource for native binaries resource "postgres" do - url "https://nightly.link/supabase/postgres/actions/runs/21695713500/supabase-postgres-linux-arm64.zip" - sha256 "6aca2a015ebb8be0245ba310f1751ac49d5c2fba2809eddf83545aad0696b89b" + url "https://nightly.link/supabase/postgres/actions/runs/21728058034/supabase-postgres-linux-arm64.zip" + sha256 "2c133d6fa1a833bf3ea2731ee9451f536079108c31ac72635f510b073552907c" end resource "auth" do url "https://github.com/supabase/auth/releases/download/v2.186.0/auth-v2.186.0-arm64.tar.gz" @@ -99,8 +99,8 @@ def install # Additional resource for native binaries resource "postgres" do - url "https://nightly.link/supabase/postgres/actions/runs/21695713500/supabase-postgres-linux-x64.zip" - sha256 "e6a5edba40f1aa693a80affd6fce57c2b39751cc6d04b9a33c6ebb4458edf0db" + url "https://nightly.link/supabase/postgres/actions/runs/21728058034/supabase-postgres-linux-x64.zip" + sha256 "7ac0e3391ccc2dab00500f119ceeeb2a8cf5a9a351a5d8e30e57fe888eecd054" end resource "auth" do url "https://github.com/supabase/auth/releases/download/v2.186.0/auth-v2.186.0-x86.tar.gz"