Skip to content
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

Automatically check for updated releases #73

Closed
nvaccessAuto opened this issue Jan 1, 2010 · 17 comments
Closed

Automatically check for updated releases #73

nvaccessAuto opened this issue Jan 1, 2010 · 17 comments
Assignees
Milestone

Comments

@nvaccessAuto
Copy link

Reported by mike.reiser on 2008-04-25 18:04
Since NVDA code updates rather rapidly and as I understand it these snapshots are like daily builds of firefox, NVDA should have an automatic update feature like firefox that installs new snapshots as they become available. The way I see this working out is like this.

  1. NVDA starts and checks the snapshots page to see if an update is available.
  2. If an update is available, it asks the user if they would like to download it. Alternatively it could just go ahead and fetch the update.
  3. It installs the update and restarts. I'm not sure if this would be dificult to implament as I'm not a programmer smiles, so someone with more experience could comment.
@nvaccessAuto
Copy link
Author

Comment 1 by jteh on 2008-05-20 01:00
Probably not in 0.6.
Changes:
Milestone changed from 0.6 to None

@nvaccessAuto
Copy link
Author

Comment 2 by Bernd on 2009-07-31 23:43
Should we close this ticket as won'tfix?
I ask because there's now NVDASD to download NVDA Snapshots.

@nvaccessAuto
Copy link
Author

Comment 3 by jteh on 2009-08-01 04:37
NVDASD is a great interim solution. However, I'd prefer something more tightly integrated, so let's leave this ticket open. However, it's certainly low priority given that NVDASD exists.

@nvaccessAuto
Copy link
Author

Comment 4 by jteh on 2010-12-06 22:11
Changes:
Changed title from "NVDA snapshot versions should have an automatic updates feature" to "Automatic updates"

@nvaccessAuto
Copy link
Author

Comment 5 by Bernd on 2011-02-26 20:36
In Notepad there is an updater integrated. Maybe you can integrate it into NVDA. I packed it for you. You can download it here:
http://dl.dropbox.com/u/11009614/updater.7z

@nvaccessAuto
Copy link
Author

Attachment 73-1.diff added by orcauser on 2011-11-30 22:52
Description:

@nvaccessAuto
Copy link
Author

Comment 6 by orcauser on 2011-11-30 23:05
Attached diff is a small starting point.

What does it do:

  • provide a function that downloads the wiki/Download page and parses for stable release version number.
  • Modifies the about nvda message to include this information.

Should it be incorporated into the nvda start screen?

Current flaws:

  • If you are running 2011.3 beta/rc, it says your version is up to date, though this can be fixed.
  • does not determine newer snapshots.

I am not sure about downloading something on users behalf, at least they should pass via the donate page.
Maybe if a newer release is detected, enable a "go to download" button, that will open the web browser at the correct page, then they can select installer/portable.

Thoughts?
Thanks.

@nvaccessAuto
Copy link
Author

Comment 7 by orcauser on 2011-11-30 23:14
:( tabs instead of spaces, will do for next diff.
Sorry

@nvaccessAuto
Copy link
Author

Comment 8 by jteh on 2012-02-17 11:44
The initial implementation of this feature will automatically check for and notify of updates, but downloading and installation will be manual. For this reason, it only makes sense to do this for releases, as snapshots get updated almost every day and will therefore just produce useless notifications. This also allows us to gather useful statistics.

Automatic downloading and installation will be considered for a future release.
Changes:
Changed title from "Automatic updates" to "Automatically check for updated releases"
Milestone changed from None to 2012.1

@nvaccessAuto
Copy link
Author

Comment 9 by briang1 on 2012-02-18 09:27
Besides, for snapshots there is a simple to use piece of software to alert you and download new snapshots if you are so minded.

@nvaccessAuto
Copy link
Author

Comment 10 by ragb on 2012-02-18 12:42
I wrote a plugin to report new snapshots, if interessted I can send it. I wrote a simple webservice in python to report that information avoiding flooding nvaccess servers and return pre-made links and such. It can be quicly adapted to stable versions. It is writen in python using the web.py framework and can be put to run anywhere using mod_wsgi. Data is returned in json but other formats can be quickly implemented. Is tehere any interested on this code?

@nvaccessAuto
Copy link
Author

Comment 11 by jteh (in reply to comment 10) on 2012-02-18 23:32
Replying to ragb:

I wrote a plugin to report new snapshots

Out of curiosity, what's the point in reporting updated snapshots without automatic installation? They're updated pretty much every day, which makes the notification rather meaningless.

if interessted I can send it.

Definitely interested in the plugin, particularly if it has a GUI.

I wrote a simple webservice in python to report that information avoiding flooding nvaccess servers and return pre-made links and such.

The offer is very much appreciated. However, I'm writing one from scratch because we want it to be able to gather statistics, etc. I'm also integrating it with some other areas like the download page to make life easier for us.

@nvaccessAuto
Copy link
Author

Comment 12 by ragb (in reply to comment 11) on 2012-02-19 02:26
Replying to jteh:

Replying to ragb:

I wrote a plugin to report new snapshots

Out of curiosity, what's the point in reporting updated snapshots without automatic installation? They're updated pretty much every day, which makes the notification rather meaningless.

Honestly? It is rather pointless to me.. But it seems that some users really appreciate it. The plugin points the user to the direct link of the new snapshot so he don't need to check the snapshots page, find the lin, etc. It was my first plugin, an exercise more than anything else.

if interessted I can send it.

Definitely interested in the plugin, particularly if it has a GUI.

The only GUI component of the pluginis a messagebox propting the user if it wants to download the last snapshot, if on exists. It appears when NVDA is initialized. The plugin is very primitive.

I wrote a simple webservice in python to report that information avoiding flooding nvaccess servers and return pre-made links and such.

The offer is very much appreciated. However, I'm writing one from scratch because we want it to be able to gather statistics, etc. I'm also integrating it with some other areas like the download page to make life easier for us.

YOu can check the web service and some example clients and the nvda plugin at

https://github.com/ragb/nvda_snapshots_ws

There is no documentation, when I wrote that I didn't thought to make it public. In fact I wrote the webservice to have the links to the last snapshots on the nvda portuguese community site, not on plugins or anything else. The nvda_update_ws package contains the cli.py script that, when executed, has commands to track a snapshots branch or update from nvaccess servers. E call cli.py update_snapshots in a cron job to regularly update from nvaccess servers. ws.py contains the real web service and wsgi application. nvdadb.py contains the backend database, a simple sqlite3 db accessed using sqlalchemy .

The nvda plugin is on clients/snapshotVersionChecker.

Regards,

Rui

@nvaccessAuto
Copy link
Author

Comment 13 by jteh on 2012-02-28 04:35
Not for 2012.1 after all.
Changes:
Milestone changed from 2012.1 to near-term

@nvaccessAuto
Copy link
Author

Comment 14 by jteh on 2012-02-29 02:19
Bzr branch: http://bzr.nvaccess.org/nvda/updateCheck/

@nvaccessAuto
Copy link
Author

Comment 15 by jteh on 2012-03-29 10:56
Changes:
Milestone changed from near-term to 2012.2

@nvaccessAuto
Copy link
Author

Comment 16 by jteh on 2012-04-05 04:32
Merged in 97bbb12. Thanks to the work in repackaged, automatic installation is implemented here too. This works for snapshots as well.
Changes:
State: closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants