Added readme and license

This commit is contained in:
brotoskyj
2025-12-29 15:39:45 -05:00
parent 2b62bd3683
commit 1512018a4f
9 changed files with 104 additions and 22 deletions
+8 -2
View File
@@ -1,3 +1,5 @@
use std::thread;
use serde::Deserialize;
use semver::Version;
use reqwest;
@@ -12,9 +14,13 @@ pub async fn update() {
let latest_version = Version::parse(&release_info.tag_name).unwrap();
let current_version = Version::parse(env!("CARGO_PKG_VERSION")).unwrap();
if latest_version > current_version {
println!("Update Available")
println!("Update Available! Please download the latest version");
println!("URL: https://git.racooncity.org/brotoskyj/RhythmWorks/releases");
thread::sleep(std::time::Duration::from_secs(10));
std::process::exit(1);
}
else {
println!("Already on current version");
}
}