plugins-workspace
plugins-workspace copied to clipboard
[updater] the config endpoints was not replaced by target, arch and version
// replace {{current_version}}, {{target}} and {{arch}} in the provided URL
// this is useful if we need to query example
// https://releases.myapp.com/update/{{target}}/{{arch}}/{{current_version}}
// will be translated into ->
// https://releases.myapp.com/update/darwin/aarch64/1.0.0
// The main objective is if the update URL is defined via the Cargo.toml
// the URL will be generated dynamically
let url: Url = url
.to_string()
.replace("{{current_version}}", &self.current_version.to_string())
.replace("{{target}}", &self.target)
.replace("{{arch}}", self.arch)
.parse()?;
in the updater.rs the url format {{current_version}} as %7B%7Bcurrent_version%7D%7D, replacement is failed
Yes, I meet the same issue