File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -516,12 +516,13 @@ impl Updater {
516
516
on_before_exit : self . on_before_exit . clone ( ) ,
517
517
app_name : self . app_name . clone ( ) ,
518
518
current_version : self . current_version . to_string ( ) ,
519
+ target : target. to_owned ( ) ,
519
520
extract_path : self . extract_path . clone ( ) ,
520
521
version : release. version . to_string ( ) ,
521
522
date : release. pub_date ,
522
523
download_url : download_url. clone ( ) ,
523
- body : release. notes . clone ( ) ,
524
524
signature : signature. to_owned ( ) ,
525
+ body : release. notes ,
525
526
installer,
526
527
raw_json : raw_json. unwrap ( ) ,
527
528
timeout : None ,
@@ -586,6 +587,9 @@ pub struct Update {
586
587
pub version : String ,
587
588
/// Update publish date
588
589
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 ,
589
593
/// Current installer
590
594
pub installer : Option < Installer > ,
591
595
/// Download URL announced
You can’t perform that action at this time.
0 commit comments