-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Check for Updates" functionality #41
Comments
Let's reference to the description here. |
@cbrnr Hi Clemens, Shall we include this feature for our next release? We simply need to create an online repository and let the Qt Maintenance tool handle the update. What do you think? |
Where can we set up the repository? |
@cbrnr That's what I am not exactly sure about... I read the following part several times but couldn't really get it yet. Does it make much sense to you? http://doc.qt.io/qtinstallerframework/ifw-online-installers.html#creating-repositories |
Hm, we'd have to try, but it sounds like you just need to create a folder with the repo stuff and then upload the whole thing to a web server. Which we don't have unless we can upload it to the GitHub webpage. I don't know, I think an update notification from within SigViewer would be more useful, pointing people to the new release which they can then manually download. |
@cbrnr I see. Well, we will see. I will need to look into more different approaches. But bottom line, I wish it to be an "update" function (but doesn't force user to update) rather than manually downloading again, because that will require the user to manually uninstall, which is a hassle. The less we ask the user to do, the happier they are. |
It might be possible that after downloading the new installer, the old version is detected and therefore users don't need to uninstall first. I think this would be OK. |
I think the normal installer also creates a kind of repo - maybe update functionality has to be enabled? But anyway, I agree that first having to uninstall SigViewer before installing a new version is cumbersome. |
@cbrnr I think there are two kinds of installers, online and offline. The one I created is offline, which doesn't create a repo. We need to create an online installer, which generates a repo. http://doc.qt.io/qtinstallerframework/ifw-online-installers.html#creating-repositories |
@cbrnr Hi Clemens, Any ideas on which approach we use for this check for update function? Would this framework interests you? Besides, some more threads: |
This is a complex topic. I'd prefer something simple without too much overhead. Ideally, I'd want to have SigViewer just check if a newer version is available and then notify the user with a download link. However, as you mentioned the Windows installer does not support updating without an explicit uninstall first. Could you check if there is an option to enable installing a new version over an existing one in Qt IFW? Alternatively, we could switch back to NSIS; the script we used previously is still available here, but needs to be adapted of course. Once we have an installer that supports installing a new version without explicitly having to uninstall the old one first, we could think about a mechanism to check version numbers. We could use our GitHub releases, I'm sure there is a way to find out the latest version available on GitHub. |
@cbrnr Hi Clemens, I think in Qt IFW there is an option "update" that can update the application without uninstalling it. The challenge is seems it requires an online repo, but I am not sure whether our github repo qualifies for that. I am less familiar with NSIS, but I am open to whichever way that can make SigViewer auto-updates itself. |
@cbrnr I was using OBS studio and happened to be attracted to their github page and see they have an auto-updater in the source code. Why don't we model on them and create our auto-updater? I will see whether it's possible. One problem that I see is, their directory is named "win-update" thus I am not sure whether they have auto updater for Mac and Linux as well. Could you please test it and let me know whether it's the case? In addition, some more threads and here Thanks! |
@cbrnr Not sure whether it's temporary error or hardcore error :/ |
It also looks like quite a bit of effort on their side. There must be a simpler way. I suggest that we implement an updater that just checks the GitHub releases and pops up a notification dialog with a download link if a release is newer than the currently used version. |
@cbrnr Clemens! Any more thoughts on the updater topic? :) The mechanism to check whether there is a new version, needs to be done by hosting an XML file (let's ignore the updating part for now... only talking about checking for new version). But only putting the XML file in the Github repo doesn't work, for some reason, at least from what I attempted. Possibly by how github works (e.g., GitHub will insert IMO, I wouldn't consider adding a github page burdensome or evil, because we don't really need to code or maintain anything. It's just a beautified version of the README.md. Plus it has the function of hosting important files for remote access, such as XML. In addition, it would be nice to have a cool page for such an awesome project anyways :) |
Yes, a project website would definitely be nice. However, I'd still prefer a simple custom updater solution that simply checks whether the latest GitHub release is newer than the installed version. That way, we don't need all this additional overhead and complexity. |
We should add a menu entry to check for SigViewer updates.
The text was updated successfully, but these errors were encountered: