Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Use the self_upgrade version which supports zip (fix #92)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Nov 25, 2018
1 parent 7d5a434 commit 7e601f8
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 4 deletions.
62 changes: 59 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ lazy_static = "1.1.0"
[profile.release]
lto = true

[patch.crates-io]
self_update = { git = "https://github.com/r-darwish/self_update", branch = "zip" }

[features]
default = []

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub fn self_update(terminal: &mut Terminal) -> Result<(), Error> {
.repo_owner("r-darwish")
.repo_name("topgrade")
.target(&target)
.bin_name("topgrade")
.bin_name(if cfg!(windows) { "topgrade.exe" } else { "topgrade" })
.show_output(false)
.show_download_progress(true)
.current_version(self_update::cargo_crate_version!())
Expand Down

0 comments on commit 7e601f8

Please sign in to comment.