Skip to content

Commit fb223d8

Browse files
fix: recognize btch-dev@ release tags in update checker
normalizeReleaseVersion only stripped btch-cli@/v prefixes, so the btch-dev@ tags published by the release workflow were never matched and update checks silently reported nothing. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 1564167 commit fb223d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/utils/install-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ async function fetchReleaseJson(url: string): Promise<GitHubRelease | null> {
331331

332332
function normalizeReleaseVersion(tagName: string): string | null {
333333
let version = tagName;
334+
if (version.startsWith("btch-dev@")) version = version.slice("btch-dev@".length);
334335
if (version.startsWith("btch-cli@")) version = version.slice("btch-cli@".length);
335336
if (version.startsWith("v")) version = version.slice(1);
336337
return semverValid(version);

0 commit comments

Comments
 (0)