Skip to content

fix(updater): release the previous download when downloading again - #3691

Merged
lucasfernog merged 1 commit into
tauri-apps:v2from
lucasfernog:fix/updater-js-redownload-leak
Oct 11, 2026
Merged

lucasfernog merged 1 commit into
tauri-apps:v2from
lucasfernog:fix/updater-js-redownload-leak

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

Each Update.download() overwrote this.downloadedBytes without closing the previous resource, so the whole previous update payload stayed in the webview resources table. The previous resource is now closed once the new download succeeded (so a failed retry still leaves the earlier download installable).

Each `Update.download()` overwrote `this.downloadedBytes` without closing the
previous resource, so the whole previous update payload stayed in the webview
resources table. The previous resource is now closed once the new download
succeeded (so a failed retry still leaves the earlier download installable).

Not covered by e2e: the fixture manifest has no valid signature, so a
download can never succeed there.

plugins/updater/guest-js/index.ts
@github-actions

Copy link
Copy Markdown
Contributor

Package Changes Through 357e1d0

There are 3 changes which include single-instance 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.55 2.0.56
api-example-js 2.0.51 2.0.52
single-instance 2.5.3 2.5.4
updater 2.13.3 2.13.4
updater-js 2.13.3 2.13.4

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


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

@lucasfernog
lucasfernog merged commit 7b7c7c6 into tauri-apps:v2 Oct 11, 2026
12 checks passed
@lucasfernog
lucasfernog deleted the fix/updater-js-redownload-leak branch October 11, 2026 19:12
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.

2 participants