2 Commits
2.1.0 ... 2.2.0

Author SHA1 Message Date
7f1a6c6bc1 Bump to 2.2.0 2022-11-14 18:20:32 -08:00
856cffd740 No timeouts while downloading 2022-11-14 18:15:24 -08:00
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "town-of-us-updater" name = "town-of-us-updater"
version = "2.0.0" version = "2.2.0"
edition = "2021" edition = "2021"
build = "src/build.rs" build = "src/build.rs"

View File

@@ -201,10 +201,12 @@ impl AppDelegate<AppData> for Delegate {
"Downloading Town of Us... Please be patient! [{}]", "Downloading Town of Us... Please be patient! [{}]",
ver_url.1.clone() ver_url.1.clone()
); );
let zip = reqwest::blocking::get(ver_url.1.clone()) let client = reqwest::blocking::Client::builder()
.unwrap() .timeout(None)
.bytes() .build()
.unwrap(); .unwrap();
let zip_request = client.get(ver_url.1.clone()).build().unwrap();
let zip = client.execute(zip_request).unwrap().bytes().unwrap();
fs::write(download_path.clone(), zip).unwrap(); fs::write(download_path.clone(), zip).unwrap();
} }