feat(updater) support proxy (#891)

* add proxy support

Signed-off-by: San Zhang <sanzhang@mail.com>

* 1. change string to url for proxy type
2. add proxy option in js api

Signed-off-by: San Zhang <sanzhang@mail.com>

* fix fmt issue

Signed-off-by: San Zhang <sanzhang@mail.com>

* Update plugins/updater/guest-js/index.ts

---------

Signed-off-by: San Zhang <sanzhang@mail.com>
This commit is contained in:
Zhang San
2024-01-17 16:47:26 +02:00
committed by GitHub
parent 8a3db790b8
commit 4e2e77580c
3 changed files with 45 additions and 7 deletions
+4
View File
@@ -14,6 +14,10 @@ interface CheckOptions {
* Timeout in seconds
*/
timeout?: number;
/**
* A proxy url to be used when checking and downloading updates.
*/
proxy?: string;
/**
* Target identifier for the running application. This is sent to the backend.
*/