Skip to content

fix(updater): download reuse check timeout#2572

Merged
Legend-Master merged 2 commits intotauri-apps:v2from
Legend-Master:download-inherit-check-timeout
Mar 28, 2025
Merged

fix(updater): download reuse check timeout#2572
Legend-Master merged 2 commits intotauri-apps:v2from
Legend-Master:download-inherit-check-timeout

Conversation

@Legend-Master
Copy link
Copy Markdown
Contributor

@Legend-Master Legend-Master commented Mar 28, 2025

Fix #2372

Fix timeout passed to check gets re-used by download and downloadAndinstall

Also did some other cleanups

@Legend-Master Legend-Master requested a review from a team as a code owner March 28, 2025 03:56
@github-actions
Copy link
Copy Markdown
Contributor

Package Changes Through 8841a78

There are 10 changes which include autostart with minor, autostart-js with minor, http with patch, http-js with patch, deep-link with patch, deep-link-js with patch, fs with patch, fs-js with patch, updater with patch, updater-js with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.23 2.0.24
api-example-js 2.0.19 2.0.20
deep-link-example-js 2.2.0 2.2.1
autostart 2.2.0 2.3.0
autostart-js 2.2.0 2.3.0
deep-link 2.2.0 2.2.1
deep-link-js 2.2.0 2.2.1
fs 2.2.0 2.2.1
fs-js 2.2.0 2.2.1
dialog 2.2.0 2.2.1
dialog-js 2.2.0 2.2.1
http 2.4.2 2.4.3
http-js 2.4.2 2.4.3
persisted-scope 2.2.0 2.2.1
single-instance 2.2.2 2.2.3
updater 2.6.1 2.6.2
updater-js 2.6.1 2.6.2

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

body: release.notes,
raw_json: raw_json.unwrap(),
timeout: self.timeout,
timeout: None,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change 🙃

Comment on lines +43 to +44
// TODO: Align this with the result of `updater.check` to Result<Option<Metadata>>
// and remove `available` instead of handling this in the js side
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it's considered breaking if we change this from returning Result<Metadata> to Result<Option<Metadata>>, if not then I would like to do it before v3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can change it, if you want since we now require users to sync their rust and js versions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice, I'll do it later

@Legend-Master Legend-Master merged commit 0bc5d58 into tauri-apps:v2 Mar 28, 2025
21 of 22 checks passed
@Legend-Master Legend-Master deleted the download-inherit-check-timeout branch March 28, 2025 10:54
Legend-Master added a commit to Legend-Master/plugins-workspace that referenced this pull request Mar 28, 2025
Legend-Master added a commit that referenced this pull request Mar 29, 2025
* fix(updater): format `Update.date` to RFC 3339

* Messed up on argument in #2572

* Format

* Update example

* Avoid extra to_string

* Deprecate `Update.available`
gezihuzi pushed a commit to Hypobenthos/plugins-workspace that referenced this pull request Jun 22, 2025
* fix(updater): download inherit timeout from check

* Add change file
gezihuzi pushed a commit to Hypobenthos/plugins-workspace that referenced this pull request Jun 22, 2025
* fix(updater): format `Update.date` to RFC 3339

* Messed up on argument in tauri-apps#2572

* Format

* Update example

* Avoid extra to_string

* Deprecate `Update.available`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug][updater] Timeout passed to check() is reused for downloadAndInstall()

2 participants