chore: change dependency source to Aliyun mirror

This commit is contained in:
sw3205933776 2025-08-21 17:30:43 +08:00
parent e7a5c5536f
commit 9f40b62ee9
3 changed files with 4 additions and 4 deletions

View file

@ -180,8 +180,8 @@ export async function installDependencies() {
fs.writeFileSync(installingLockPath, '') fs.writeFileSync(installingLockPath, '')
const installedLockPath = path.join(backendPath, 'uv_installed.lock') const installedLockPath = path.join(backendPath, 'uv_installed.lock')
const proxyArgs = ['--default-index', 'https://pypi.tuna.tsinghua.edu.cn/simple'] // const proxyArgs = ['--default-index', 'https://pypi.tuna.tsinghua.edu.cn/simple']
const proxyArgs = ['--default-index', 'https://mirrors.aliyun.com/pypi/simple/']
const runInstall = (extraArgs: string[]) => { const runInstall = (extraArgs: string[]) => {
return new Promise<boolean>((resolveInner) => { return new Promise<boolean>((resolveInner) => {
const node_process = spawn(uv_path, [ const node_process = spawn(uv_path, [

View file

@ -58,7 +58,7 @@ async function downloadBunBinary(bun_download_url,platform, arch, version = DEFA
try { try {
console.log(`Downloading bun ${version} for ${platformKey}...`) console.log(`Downloading bun ${version} for ${platformKey}...`)
console.log(`URL: ${downloadUrl}`) console.log(`URL: ${downloadUrl}`)
if (fs.existsSync(tempFilename)) fs.unlinkSync(tempFilename)
// Use the new download function // Use the new download function
await downloadWithRedirects(downloadUrl, tempFilename) await downloadWithRedirects(downloadUrl, tempFilename)

View file

@ -71,7 +71,7 @@ async function downloadUvBinary(
try { try {
console.log(`Downloading uv ${version} for ${platformKey}...`); console.log(`Downloading uv ${version} for ${platformKey}...`);
console.log(`URL: ${downloadUrl}`); console.log(`URL: ${downloadUrl}`);
if (fs.existsSync(tempFilename)) fs.unlinkSync(tempFilename)
await downloadWithRedirects(downloadUrl, tempFilename); await downloadWithRedirects(downloadUrl, tempFilename);
console.log(`Extracting ${packageName} to ${binDir}...`); console.log(`Extracting ${packageName} to ${binDir}...`);