fix(scripts): update download URLs and default versions for bun and uv binaries

This commit is contained in:
kangfenmao 2025-04-11 11:25:37 +08:00
parent 978c3ea3cf
commit 24d6d146c0
3 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,8 @@ const AdmZip = require('adm-zip')
const { downloadWithRedirects } = require('./download') const { downloadWithRedirects } = require('./download')
// Base URL for downloading bun binaries // Base URL for downloading bun binaries
const BUN_RELEASE_BASE_URL = 'https://github.com/oven-sh/bun/releases/download' const BUN_RELEASE_BASE_URL = 'https://gitcode.com/CherryHQ/bun/releases/download'
const DEFAULT_BUN_VERSION = '1.2.5' // Default fallback version const DEFAULT_BUN_VERSION = '1.2.9' // Default fallback version
// Mapping of platform+arch to binary package name // Mapping of platform+arch to binary package name
const BUN_PACKAGES = { const BUN_PACKAGES = {

View File

@ -7,8 +7,8 @@ const AdmZip = require('adm-zip')
const { downloadWithRedirects } = require('./download') const { downloadWithRedirects } = require('./download')
// Base URL for downloading uv binaries // Base URL for downloading uv binaries
const UV_RELEASE_BASE_URL = 'https://github.com/astral-sh/uv/releases/download' const UV_RELEASE_BASE_URL = 'https://gitcode.com/CherryHQ/uv/releases/download'
const DEFAULT_UV_VERSION = '0.6.6' const DEFAULT_UV_VERSION = '0.6.14'
// Mapping of platform+arch to binary package name // Mapping of platform+arch to binary package name
const UV_PACKAGES = { const UV_PACKAGES = {

View File

@ -43,8 +43,8 @@ const InstallNpxUv: FC<Props> = ({ mini = false }) => {
} catch (error: any) { } catch (error: any) {
window.message.error({ content: `${t('settings.mcp.installError')}: ${error.message}`, key: 'mcp-install-error' }) window.message.error({ content: `${t('settings.mcp.installError')}: ${error.message}`, key: 'mcp-install-error' })
setIsInstallingUv(false) setIsInstallingUv(false)
checkBinaries()
} }
setTimeout(checkBinaries, 1000)
} }
const installBun = async () => { const installBun = async () => {
@ -59,8 +59,8 @@ const InstallNpxUv: FC<Props> = ({ mini = false }) => {
key: 'mcp-install-error' key: 'mcp-install-error'
}) })
setIsInstallingBun(false) setIsInstallingBun(false)
checkBinaries()
} }
setTimeout(checkBinaries, 1000)
} }
useEffect(() => { useEffect(() => {