Use the self_upgrade version which supports zip (fix #92)

This commit is contained in:
Roey Darwish Dror
2018-11-25 13:05:02 +02:00
parent 7d5a434866
commit 7e601f805d
3 changed files with 63 additions and 4 deletions

View File

@@ -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!())