Skip to content

Commit c7696f3

Browse files
authored
feat(updater): add body and date getters (#3802)
1 parent b14aa89 commit c7696f3

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Added `UpdateResponse::body` and `UpdateResponse::date`.

core/tauri/src/updater/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,16 @@ impl<R: Runtime> UpdateResponse<R> {
637637
&self.update.version
638638
}
639639

640+
/// The update date.
641+
pub fn date(&self) -> &str {
642+
&self.update.date
643+
}
644+
645+
/// The update description.
646+
pub fn body(&self) -> Option<&String> {
647+
self.update.body.as_ref()
648+
}
649+
640650
/// Downloads and installs the update.
641651
pub async fn download_and_install(self) -> Result<()> {
642652
download_and_install(self.update).await

0 commit comments

Comments
 (0)