#Can't see updates on desktop app (from settings)
1 messages · Page 1 of 1 (latest)
sometimes takes a few tries, but eventually updates
isn't it because this URL is not working ?? https://notesnook.com/api/v1/releases/linux/latest (win32 too)
thats a bit out of my reach to check @vale slate
looking at the code a bit, i saw it was using the electron auto updater thing and the URL behind was not working
for the file where i found the URL https://github.com/streetwriters/notesnook/blob/master/apps/desktop/src/utils/autoupdater.ts
i havent checked, but you sure paltform is set correctly ?
i see its a var there
i used node to be sure node -e 'console.log(process.platform)'
it gave me linux for my WSL and win32 for windows
interesting, anything i type there gives the same result,
i guess there might be an issue on the API behind
how does the updater works? does it post/get?
you could be right, probably not worth playing around
on this URL it should be a GET, i'm trying to confirm it by looking into electron docs
if you add /feed.json at the end it directly download the file
Looking at it.
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