tauri-apps / tauri-apps/plugins-workspace

[bug] Update fails on Windows when constructing the updater using the UpdaterBuilder directly

Open
#2,335 8 comments 0 reactions 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

I'm using the `UpdaterBuilder` to construct an `Updater` and initiate an update but I'm getting a panic error: `range start index 1 out of range for slice of length 0` in `tauri-plugin-updater-2.3.1\src\updater.rs:616:52`.

It seems to be because the `UpdaterBuilder::current_exe_args` is empty and it's not possible to change it from outside the crate.

The reason I'm using the `UpdaterBuilder` directly and not using `UpdaterExt` is because I only want to use the update functionality but I'm otherwise not using tauri and I don't want to construct a `Runtime`. Is this kind of use not supported?

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.