Merge branch 'main' into fix_install_logic

This commit is contained in:
Puzhen Zhang 2025-11-20 17:13:32 +08:00 committed by GitHub
commit 4eaf7a2e4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 485 additions and 159 deletions

View file

@ -76,6 +76,7 @@ export async function downloadWithRedirects(url, destinationPath) {
// Check if file exists and has size > 0
try {
if (fs.existsSync(destinationPath)) {
const stats = fs.statSync(destinationPath)
if (stats.size === 0) {
@ -89,6 +90,7 @@ export async function downloadWithRedirects(url, destinationPath) {
}
} catch (err) {
safeReject(new Error(`Failed to verify download: ${err.message}`))
}
})
})