Tauri-Plugin-Updater: Dynamic Update Server with parameters #13565
-
Is there a way to use the check() method with extra parameters? I created a c# controller which checks if an update is available: [HttpGet("check")]
public async Task<ActionResult<UpdateInfo>> CheckForUpdate(
[FromQuery] string target,
[FromQuery(Name = "current_version")] string currentVersion,
[FromQuery] string channel = "stable")
{
if (string.IsNullOrEmpty(target) || string.IsNullOrEmpty(currentVersion))
{
return BadRequest("Target and current_version are required.");
}
UpdateInfo updateInfoFromService = await _appReleaseDatabaseService.CheckForUpdate(target, currentVersion, channel);
if (updateInfoFromService != null)
{
return Ok(updateInfoFromService);
}
return NoContent();
} Using the check() Method always returns "Error retrieving version management information" because the parameters "target" and "currentVersion" is null. When I try to pass the target with the check url the backend still receives no value. check({target: 'windows-x86_64'}) Is there a way to pass the parameters with |
Beta Was this translation helpful? Give feedback.
Answered by
QuirkyQueryQuester
Jun 4, 2025
Replies: 1 comment
-
I found the solution. "endpoints": [
"http://localhost:55755/api/app-release/AppRelease/check?target={{target}}¤t_version={{current_version}}"
] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
QuirkyQueryQuester
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the solution.
I forgot to set the parameters in the endpoint url.