Closed vivekagate closed 12 months ago
For reference the discord conversation: https://discord.com/channels/616186924390023171/1124504085266186381
Note that it still works fine on my end using the same versions so idk what's really happening here (the json files looked alright to me)
Could you add the following to your Cargo.toml
[patch.crates-io]
tauri = { git = "https://github.com/tauri-apps/tauri", branch = "fix/updater/max-redirections" }
then run cargo update
in src-tauri
and see if it fixes the issue for your?
@amrbashir Yes that works!
Describe the bug
The link: https://github.com///releases/latest/download/latest.json returns a 302 that redirects to a different URL. The updater does not pop open the "Upgrade App dialog"
Is this by design? or is it a bug?
It would be great if updater can honor redirects to get the latest.json
Current workaround is to have the latest.json file as here: https://raw.githubusercontent.com///master/latest.json
Reproduction
Steps to reproduce:
Configure tauri.confi.json with the Updater snippet
"updater": { "active": true, "windows": { "installMode": "passive" }, "endpoints": [ "https://github.com/<owner>/<repo>/master/latest.json" ], "dialog": true, "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDU3NjlFREE5NUY3MDk3QTQKUldTa2wzQmZxZTFwVjRTRlNwVS9wZHgrUVJ2QUhOSnhqYURyZFA4L3AzUmgrLy9vVnFsQ01QckkK" },
Expected result: "Update app" dialog is shown when the app starts up.
Actual result: "Update app" dialog is not shown
Notes: Updater sends down HTTP GET to the endpoint and expects a JSON blob. In this case, the endpoint returns a 302 with the actual location of JSON.
Current workaround: Use an Endpoint of the form
https://raw.githubusercontent.com/nirops/tradedog-public/master/latest.json
Expected behavior
Expected result: "Update app" dialog is shown when the app starts up.
Updater follows the redirects and obtains the latest.json
Platform and versions
Stack trace
No response
Additional context
No response