Skip to content

Commit fc85f3b

Browse files
committed
Keep target in Update since it's public
1 parent c8d57a8 commit fc85f3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/updater/src/updater.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,12 +516,13 @@ impl Updater {
516516
on_before_exit: self.on_before_exit.clone(),
517517
app_name: self.app_name.clone(),
518518
current_version: self.current_version.to_string(),
519+
target: target.to_owned(),
519520
extract_path: self.extract_path.clone(),
520521
version: release.version.to_string(),
521522
date: release.pub_date,
522523
download_url: download_url.clone(),
523-
body: release.notes.clone(),
524524
signature: signature.to_owned(),
525+
body: release.notes,
525526
installer,
526527
raw_json: raw_json.unwrap(),
527528
timeout: None,
@@ -586,6 +587,9 @@ pub struct Update {
586587
pub version: String,
587588
/// Update publish date
588589
pub date: Option<OffsetDateTime>,
590+
/// The `{{target}}` variable we replace in the endpoint and serach for in the JSON,
591+
/// this is either the user provided target or the current operating system by default
592+
pub target: String,
589593
/// Current installer
590594
pub installer: Option<Installer>,
591595
/// Download URL announced

0 commit comments

Comments
 (0)