tauri-apps / tauri-apps/plugins-workspace

Updater plugin update.install() never returns

Open
#2,558 4 comments 1 reaction 0 assignees View on GitHub
plugin: updater type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

The updater plugins update.install() on js doesn't return anymore, execution is stuck inside the function. After closing the app and reopening it is still on the older version.
I tried enabling debug logging and with that the output shows "running on_before_exit hook" twice, but then nothing happens, the app stays open. https://github.com/tauri-apps/plugins-workspace/blob/831c35ff3940e841fe4418bb4cb104038b03304b/plugins/updater/src/updater.rs#L718

I haven't added anything to the on_before_exit.
I am on windows 10.

_Tauri info output:_

```
[✔] Environment
- OS: Windows 10.0.19045 x86_64 (X64)
✔ WebView2: 134.0.3124.72
✔ MSVC:
- Visual Studio Professional 2019
- Visual Studio Professional 2022
✔ rustc: 1.84.0 (9fc6b4312 2025-01-07)
✔ cargo: 1.84.0 (66221abde 2024-11-19)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.14.0
- pnpm: 10.6.3
- npm: 10.9.2
- bun: 1.1.33

[-] Packages
- tauri 🦀: 2.4.0
- tauri-build 🦀: 2.1.0
- wry 🦀: 0.50.5
- tao 🦀: 0.32.8
- @tauri-apps/api : 2.4.0
- @tauri-apps/cli : 2.4.0

[-] Plugins
- tauri-plugin-deep-link 🦀: 2.2.0
- @tauri-apps/plugin-deep-link : 2.2.0
- tauri-plugin-updater 🦀: 2.6.1
- @tauri-apps/plugin-updater : 2.6.1
- tauri-plugin-log 🦀: 2.3.1
- @tauri-apps/plugin-log : not installed!
- tauri-plugin-dialog 🦀: 2.2.0
- @tauri-apps/plugin-dialog : 2.2.0
- tauri-plugin-persisted-scope 🦀: 2.2.0
- @tauri-apps/plugin-persisted-scope : not installed!
- tauri-plugin-opener 🦀: 2.2.6
- @tauri-apps/plugin-opener : 2.2.6
- tauri-plugin-window-state 🦀: 2.2.1
- @tauri-apps/plugin-window-state : 2.2.1
- tauri-plugin-store 🦀: 2.2.0
- @tauri-apps/plugin-store : 2.2.0
- tauri-plugin-fs 🦀: 2.2.0
- @tauri-apps/plugin-fs : 2.2.0
- tauri-plugin-clipboard-manager 🦀: 2.2.2
- @tauri-apps/plugin-clipboard-manager : 2.2.2

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../out
- devUrl: http://localhost:3000/
- framework: React (Next.js)
- bundler: Webpack
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.