ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.02k stars 232 forks source link

Add functionality for checking for a new version #1064

Open swivelmargarita opened 5 months ago

swivelmargarita commented 5 months ago

There was a commented out code for this functionality in utils.cpp, but when I tested that code it would evaluate the version wrong. I tried to add a way to check if a new version available from the github releases. If so it redirects to the github release site. If there's something I overlooked, I'd appreciate feedback, thanks.

I added a test case(it emulates when there's a new version) where the version obtained from github releases(69.420.0) is different than current version(2.0.0). It works as expected. image