Skip to content

Commit

Permalink
feat(dre): enabling showing progress during self update (#423)
Browse files Browse the repository at this point in the history
* enabling showing progress during self update

* Github Action: Bazel Repin

* returning to new 0.4.0

* repinning

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
NikolaMilosa and github-actions[bot] committed May 24, 2024
1 parent 80c7de3 commit cd4ef30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rs/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ fn check_latest_release(curr_version: &str) -> anyhow::Result<UpdateStatus> {
std::fs::File::create(&new_dre_path).map_err(|e| anyhow::anyhow!("Couldn't create file: {:?}", e))?;

self_update::Download::from_url(&asset.download_url)
.show_progress(true)
.download_to(&asset_file)
.map_err(|e| anyhow::anyhow!("Couldn't download asset: {:?}", e))?;

Expand All @@ -550,6 +551,7 @@ fn check_latest_release(curr_version: &str) -> anyhow::Result<UpdateStatus> {
};

self_update::Download::from_url(download_url)
.show_progress(true)
.download_to(&new_dre_file)
.map_err(|e| anyhow::anyhow!("Couldn't download binary: {:?}", e))?;

Expand Down

0 comments on commit cd4ef30

Please sign in to comment.