Skip to content

Commit f439d7f

Browse files
committed
fix: cicd
1 parent 3d764df commit f439d7f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/@postgres-language-server/cli/scripts/generate-packages.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ async function downloadSchema(releaseTag, githubToken) {
6565
async function downloadBinary(platform, arch, os, releaseTag, githubToken) {
6666
const buildName = getBuildName(platform, arch);
6767
const ext = getBinaryExt(os);
68+
const assetName = ext && buildName.endsWith(ext) ? buildName : `${buildName}${ext}`;
6869

69-
const assetUrl = `https://github.com/supabase-community/postgres-language-server/releases/download/${releaseTag}/${buildName}${ext}`;
70+
const assetUrl = `https://github.com/supabase-community/postgres-language-server/releases/download/${releaseTag}/${assetName}`;
7071

7172
const response = await fetch(assetUrl.trim(), {
7273
headers: {

0 commit comments

Comments
 (0)