2 Commits

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
3 changed files with 6 additions and 5 deletions

View File

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

View File

@@ -7,7 +7,6 @@ A tool to automatically install the **Town of Us R** mod for **Among Us**.
- Caches old builds to allow you to continue playing the mod in case of a breaking Among Us update
- GUI to select which build to play
- Auto-detection of Among Us install directory
- Auto-launch of BetterCrewLink if installed
# Contributing

View File

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