tauri-apps / tauri-apps/plugins-workspace
[updater][bug] `download_and_install` request fails in debug build from installed app
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
When launching my Tauri app as an installed debug build [`Update.download_and_install`](https://docs.rs/tauri-plugin-updater/latest/tauri_plugin_updater/struct.Update.html#method.download_and_install) times out.
It works if launched
+ As a release build
+ As a debug build from the command line
+ Using `cargo tauri dev`
So it seems to be the specific combination of being
1. An installed debug build
2. Not launched from the command line (i.e. from the Start menu, or a shortcut, or by double clicking on the `.exe`)
## Notes
+ I have a [`timeout`](https://docs.rs/tauri-plugin-updater/latest/tauri_plugin_updater/struct.UpdaterBuilder.html#method.timeout) of 30 seconds set.
+ In debug builds I have two endpoints: the first is a `localhost` server I use for testing, the second is the production server that hosts our releases. The update check succeeds if the local server is running, but fails when it is not, causing `Updater.check` to ping the production server.
+ I've only tested this on a Windows 10 machine.
Contributor guide
Assessment
This issue has not been assessed yet.