mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 11:40:25 +00:00
Merge branch 'main' into fix_install_logic
This commit is contained in:
commit
4eaf7a2e4c
30 changed files with 485 additions and 159 deletions
|
|
@ -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}`))
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue