4 Commits

Author SHA1 Message Date
69f67d303e Merge branch 'master' of http://git.dormedas.com/dormedas/town-of-us-updater 2022-09-26 19:08:26 -07:00
6d05440d98 Merge branch 'hotfix-2.0.0' 2022-09-26 19:07:54 -07:00
972c310673 Update 'README.md' 2022-09-26 14:47:01 -07:00
90b703ee30 Bump to 3.0.0 2022-09-26 08:15:17 -07:00
3 changed files with 5 additions and 6 deletions

View File

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

View File

@@ -7,6 +7,7 @@ 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 - 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 - GUI to select which build to play
- Auto-detection of Among Us install directory - Auto-detection of Among Us install directory
- Auto-launch of BetterCrewLink if installed
# Contributing # Contributing

View File

@@ -201,12 +201,10 @@ 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 client = reqwest::blocking::Client::builder() let zip = reqwest::blocking::get(ver_url.1.clone())
.timeout(None) .unwrap()
.build() .bytes()
.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();
} }