File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ interface CheckOptions {
22
22
* Target identifier for the running application. This is sent to the backend.
23
23
*/
24
24
target ?: string
25
+
26
+ endpoints ?: string [ ]
25
27
}
26
28
27
29
/** Options used when downloading an update */
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ pub(crate) async fn check<R: Runtime>(
47
47
timeout : Option < u64 > ,
48
48
proxy : Option < String > ,
49
49
target : Option < String > ,
50
+ endpoints : Option < Vec < Url > > ,
50
51
) -> Result < Metadata > {
51
52
let mut builder = webview. updater_builder ( ) ;
52
53
if let Some ( headers) = headers {
@@ -64,6 +65,9 @@ pub(crate) async fn check<R: Runtime>(
64
65
if let Some ( target) = target {
65
66
builder = builder. target ( target) ;
66
67
}
68
+ if let Some ( endpoints) = endpoints {
69
+ builder = builder. endpoints ( endpoints) ?;
70
+ }
67
71
68
72
let updater = builder. build ( ) ?;
69
73
let update = updater. check ( ) . await ?;
You can’t perform that action at this time.
0 commit comments