Skip to content

Commit 43e41f3

Browse files
author
linyuan.yang
committed
latest url
1 parent 4da336b commit 43e41f3

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎packages/sbot.commons/src/update.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function fetchLatestRelease(): Promise<{ tag: string; url: string;
3333
const version: string = (data.version as string) || ''
3434
if (!version) return null
3535
const tag = version.startsWith('v') ? version : `v${version}`
36-
return { tag, url: `${NPM_URL}/v/${version}`, releasenoteEn: (data.releasenoteEn as string) || '', releasenoteZh: (data.releasenoteZh as string) || '' }
36+
return { tag, url: `${GITHUB_RELEASES_URL}/tag/sbot-${tag}`, releasenoteEn: (data.releasenoteEn as string) || '', releasenoteZh: (data.releasenoteZh as string) || '' }
3737
} catch {
3838
return null
3939
}

‎packages/sbot/src/Channel/ChannelManager.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ async function checkForUpdate(sendMessage: (msg: string) => Promise<void>): Prom
4949
`## 🎉 New version available: ${latest.tag}`,
5050
``,
5151
`Current version: **v${config.pkg.version}**`,
52-
`Latest version: **${latest.tag}**`,
53-
``,
54-
`**Update command:**`,
55-
`\`\`\``,
56-
`npm install -g @qingfeng346/sbot@latest`,
57-
`\`\`\``,
5852
``,
5953
`[View release notes](${latest.url})${releasenoteSection}`,
6054
].join('\n');

0 commit comments

Comments
 (0)