From b8d0a0ac08d488f73891987dc6b62d36215cc35b Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 14 Feb 2024 10:12:44 -0800 Subject: [PATCH] all files for download now versioned --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); } _ => {