#Updater not working with endpoint: https://github.com/<user>/<repo>......

9 messages · Page 1 of 1 (latest)

balmy wyvern
#

The link: https://github.com/<user>/<repo>/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/<user>/<repo>/master/latest.json

empty rose
#

Feels like an oversight on someones part

#

Might wanna open an issue on Github about it

balmy wyvern
#

Thanks @empty rose Let me do that.

teal sparrow
#

It would be great if updater can honor redirects to get the latest.json
It does, i saw many apps on this server using that, and i tested it myself too multiple times. (talking specifically about your url, not 302 in general tho i don't see why one would work and the others don't)

teal sparrow
balmy wyvern
#

@teal sparrow I see. Could it be OS specific problem? This is my current environment.

[✔] Environment
- OS: Ubuntu 20.04 X64
✔ webkit2gtk-4.0: 2.38.6
✔ rsvg2: 2.48.9
✔ rustc: 1.70.0 (90c541806 2023-05-31)
✔ Cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 16.16.0
- yarn: 1.22.18
- npm: 8.11.0

[-] Packages
- tauri [RUST]: 1.4.1
- tauri-build [RUST]: 1.4.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.2
- @tauri-apps/api [NPM]: 1.4.0
- @tauri-apps/cli [NPM]: 1.4.0

[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist/tradedog
- devPath: http://localhost:1420/
- framework: Angular
- bundler: Webpack

teal sparrow
#

tested it on ubuntu 22.04 too, still working.
But with Linux it's a bit tricky since literally every installation is different from another unlike windows and macos where all are pretty similar 😮‍💨

balmy wyvern
#

Thats interesting.