Skip to content

Commit dd8e1b7

Browse files
authored
chore(cli): align scoop manifest with Main bucket conventions (#5490)
## Summary Updates `update-scoop.ts` so manifests pushed to `supabase/scoop-bucket` follow the same structure as the official Scoop/Main bucket entry, while keeping our bucket-specific description. - Switch Windows artifacts from versioned `.zip` URLs to unversioned `.tar.gz` URLs (`supabase_windows_amd64.tar.gz` / `supabase_windows_arm64.tar.gz`), matching Main and the unversioned aliases already published on GitHub Releases. - Move `bin` to the top level as a string (`"bin": "supabase.exe"`) instead of per-architecture array entries. - Add the Main-style `autoupdate.hash` block pointing at `$baseurl/supabase_$version_checksums.txt`. - Keep `"description": "Supabase CLI"` rather than Main's Firebase tagline. - Preserve `--local` behavior by continuing to reference versioned tarballs from `dist/`, since local builds do not create unversioned aliases. ## Context The previous manifest layout (zip URLs, `bin` inside `architecture`) was the only one in our bucket with that shape and diverged from Scoop maintainer conventions. This aligns the generated JSON with what Main reviewers expect, without changing the installed binary name or release artifact contents.
1 parent 0d046f3 commit dd8e1b7

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

apps/cli/scripts/update-scoop.ts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,47 @@ const baseUrl = local
5858
? `file:///${distDir.replace(/\\/g, "/")}`
5959
: `https://github.com/${repo}/releases/download/v${version}`;
6060

61+
// Main-bucket layout uses unversioned Windows tarballs on GitHub Releases
62+
// (release-shared.yml copies versioned builds to supabase_windows_*.tar.gz).
63+
// Local builds only emit versioned archives, so --local keeps those names.
64+
const amd64Tar = local
65+
? `supabase_${version}_windows_amd64.tar.gz`
66+
: "supabase_windows_amd64.tar.gz";
67+
const arm64Tar = local
68+
? `supabase_${version}_windows_arm64.tar.gz`
69+
: "supabase_windows_arm64.tar.gz";
70+
6171
const manifest = {
6272
version,
6373
description: "Supabase CLI",
64-
homepage: "https://supabase.com",
74+
homepage: "https://supabase.com/",
6575
license: "MIT",
6676
architecture: {
6777
"64bit": {
68-
url: `${baseUrl}/supabase_${version}_windows_amd64.zip`,
69-
hash: sha(`supabase_${version}_windows_amd64.zip`),
70-
bin: [binEntry],
78+
url: `${baseUrl}/${amd64Tar}`,
79+
hash: sha(`supabase_${version}_windows_amd64.tar.gz`),
7180
},
7281
arm64: {
73-
url: `${baseUrl}/supabase_${version}_windows_arm64.zip`,
74-
hash: sha(`supabase_${version}_windows_arm64.zip`),
75-
bin: [binEntry],
82+
url: `${baseUrl}/${arm64Tar}`,
83+
hash: sha(`supabase_${version}_windows_arm64.tar.gz`),
7684
},
7785
},
86+
bin: binEntry,
7887
checkver: {
7988
github: `https://github.com/${repo}`,
8089
},
8190
autoupdate: {
8291
architecture: {
8392
"64bit": {
84-
url: `https://github.com/${repo}/releases/download/v$version/supabase_$version_windows_amd64.zip`,
93+
url: `https://github.com/${repo}/releases/download/v$version/supabase_windows_amd64.tar.gz`,
8594
},
8695
arm64: {
87-
url: `https://github.com/${repo}/releases/download/v$version/supabase_$version_windows_arm64.zip`,
96+
url: `https://github.com/${repo}/releases/download/v$version/supabase_windows_arm64.tar.gz`,
8897
},
8998
},
99+
hash: {
100+
url: "$baseurl/supabase_$version_checksums.txt",
101+
},
90102
},
91103
};
92104

0 commit comments

Comments
 (0)