Skip to content

Commit

Permalink
feat: enhance wget command with progress bar and retry options
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jan 14, 2025
1 parent 41a5c49 commit 993f7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pre_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ function hasFeature(name) {

async function wget(url, path) {
if (platform === 'windows') {
await $`C:\\msys64\\usr\\bin\\wget.exe -nc --show-progress ${url} -O ${path}`
await $`C:\\msys64\\usr\\bin\\wget.exe --show-progress --progress=bar:force:noscroll --tries=10 -nc ${url} -O ${path}`
} else {
await $`wget --tries=10 -nc --show-progress ${url} -O ${path}`
await $`wget --show-progress --progress=bar:force:noscroll --tries=10 -nc ${url} -O ${path}`
}
}

Expand Down

0 comments on commit 993f7e9

Please sign in to comment.