diff --git a/src/main.rs b/src/main.rs index 2eb8825..e45e241 100644 --- a/src/main.rs +++ b/src/main.rs @@ -155,7 +155,7 @@ impl imp::EventHandler for UpdateBot { match body.as_str() { "windows" => { 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()); } "linux" => { @@ -165,12 +165,12 @@ impl imp::EventHandler for UpdateBot { } "macos" => { 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()); } "android" => { 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()); } _ => {