plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

[updater] the config endpoints was not replaced by target, arch and version

Open jyc5120 opened this issue 3 years ago • 1 comments

            // 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

jyc5120 avatar Oct 11 '23 22:10 jyc5120

Yes, I meet the same issue

Binlogo avatar Oct 16 '23 09:10 Binlogo