all files for download now versioned

This commit is contained in:
Dan Ballard 2024-02-14 10:12:44 -08:00
parent a1eb244927
commit b8d0a0ac08
1 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ impl imp::EventHandler for UpdateBot {
match body.as_str() { match body.as_str() {
"windows" => { "windows" => {
let mut windows_path = self.latest_version.clone(); let mut windows_path = self.latest_version.clone();
windows_path.push("cwtch-installer.exe"); windows_path.push(format!("cwtch-installer-{}.exe", self.version));
cwtch.share_file(&profile.profile_id, conversation_id, windows_path.to_str().unwrap()); cwtch.share_file(&profile.profile_id, conversation_id, windows_path.to_str().unwrap());
} }
"linux" => { "linux" => {
@ -165,12 +165,12 @@ impl imp::EventHandler for UpdateBot {
} }
"macos" => { "macos" => {
let mut mac_path = self.latest_version.clone(); let mut mac_path = self.latest_version.clone();
mac_path.push("Cwtch.dmg"); mac_path.push(format!("Cwtch-{}.dmg", self.version));
cwtch.share_file(&profile.profile_id, conversation_id, mac_path.to_str().unwrap()); cwtch.share_file(&profile.profile_id, conversation_id, mac_path.to_str().unwrap());
} }
"android" => { "android" => {
let mut android_path = self.latest_version.clone(); let mut android_path = self.latest_version.clone();
android_path.push("app-release.apk"); android_path.push(format!("cwtch-{}.apk", self.version));
cwtch.share_file(&profile.profile_id, conversation_id, android_path.to_str().unwrap()); cwtch.share_file(&profile.profile_id, conversation_id, android_path.to_str().unwrap());
} }
_ => { _ => {