diff --git a/resources/scripts/install-bun.js b/resources/scripts/install-bun.js index 24612847..b7784fa5 100644 --- a/resources/scripts/install-bun.js +++ b/resources/scripts/install-bun.js @@ -6,8 +6,8 @@ const AdmZip = require('adm-zip') const { downloadWithRedirects } = require('./download') // Base URL for downloading bun binaries -const BUN_RELEASE_BASE_URL = 'https://github.com/oven-sh/bun/releases/download' -const DEFAULT_BUN_VERSION = '1.2.5' // Default fallback version +const BUN_RELEASE_BASE_URL = 'https://gitcode.com/CherryHQ/bun/releases/download' +const DEFAULT_BUN_VERSION = '1.2.9' // Default fallback version // Mapping of platform+arch to binary package name const BUN_PACKAGES = { diff --git a/resources/scripts/install-uv.js b/resources/scripts/install-uv.js index 0b3dfe3a..32892b9c 100644 --- a/resources/scripts/install-uv.js +++ b/resources/scripts/install-uv.js @@ -7,8 +7,8 @@ const AdmZip = require('adm-zip') const { downloadWithRedirects } = require('./download') // Base URL for downloading uv binaries -const UV_RELEASE_BASE_URL = 'https://github.com/astral-sh/uv/releases/download' -const DEFAULT_UV_VERSION = '0.6.6' +const UV_RELEASE_BASE_URL = 'https://gitcode.com/CherryHQ/uv/releases/download' +const DEFAULT_UV_VERSION = '0.6.14' // Mapping of platform+arch to binary package name const UV_PACKAGES = { diff --git a/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx b/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx index d1043af9..86bc7c8b 100644 --- a/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx +++ b/src/renderer/src/pages/settings/MCPSettings/InstallNpxUv.tsx @@ -43,8 +43,8 @@ const InstallNpxUv: FC = ({ mini = false }) => { } catch (error: any) { window.message.error({ content: `${t('settings.mcp.installError')}: ${error.message}`, key: 'mcp-install-error' }) setIsInstallingUv(false) - checkBinaries() } + setTimeout(checkBinaries, 1000) } const installBun = async () => { @@ -59,8 +59,8 @@ const InstallNpxUv: FC = ({ mini = false }) => { key: 'mcp-install-error' }) setIsInstallingBun(false) - checkBinaries() } + setTimeout(checkBinaries, 1000) } useEffect(() => {