#Can't see updates on desktop app (from settings)

1 messages · Page 1 of 1 (latest)

proper frost
#

As you might know there is a button Check for updates in the About section of the settings popup, and when clicking it, it spins and nothing else ...
Tho there is a new version 3.0.19 that is not showing

eternal stratus
#

sometimes takes a few tries, but eventually updates

proper frost
eternal stratus
#

thats a bit out of my reach to check @vale slate

proper frost
#

looking at the code a bit, i saw it was using the electron auto updater thing and the URL behind was not working

eternal stratus
#

i havent checked, but you sure paltform is set correctly ?

#

i see its a var there

proper frost
#

i used node to be sure node -e 'console.log(process.platform)'
it gave me linux for my WSL and win32 for windows

eternal stratus
#

interesting, anything i type there gives the same result,

proper frost
#

i guess there might be an issue on the API behind

eternal stratus
#

how does the updater works? does it post/get?

eternal stratus
proper frost
#

if you add /feed.json at the end it directly download the file

vale slate
#

Looking at it.

proper frost
#

ok i understand better how it works, thx to a proxy i setup on my PC (i used Charles).

First it does a GET request on https://notesnook.com/api/v1/releases/linux/latest/latest.yml with a query param for no-cache (you can replace linux with win32, it also work)
Then if the version (or release date, idk which one is taken) specified in the response is newer than the current version it should update
And to finish it should concat the baseURL (https://notesnook.com/api/v1/releases/linux/latest/) with the file URL (notesnook_linux_x86_64.AppImage or v3.0.19/notesnook_win.exe)

When logging with Charles i saw sometimes it was getting some timeout errors
Also regarding the windows part, do you know how it choose between the win, win_x64 and win_arm64 version ?? (or it just pick the win as it's the one in the path param ?)

And to finish on what i saw, if you put anything after the baseURL i showed above, it will download the one provided in the path param of the latest.yml file