getdown icon indicating copy to clipboard operation
getdown copied to clipboard

Scheduled check and update feature

Open neuharthr opened this issue 6 years ago • 2 comments

Is there a way or has someone already created an app to use getdown and have it check at a set interval (i.e. every 12 hours) for updates. If new updates are found, do the update and then restart the app all without user intervention? I am looking into having a set of Java server components update automatically like JAUUS kind of did. My initial though is the boat loader design of getdown may prevent this.

neuharthr avatar Oct 21 '18 20:10 neuharthr

I don't know of anyone using Getdown in this way, but with the cooperation of the application it would be possible.

Getdown already supports a "versioned mode" where the application is responsible for detecting that a new version is needed and it uses the LaunchUtil.updateVersionAndRelaunch helper method to relaunch Getdown with the instructions to upgrade to the specified new version.

This could be used in the way you describe, though it would remain the responsibility of the application to check for a new version at the desired period and call the helper method when needed. That is perhaps not what you had in mind, or maybe you don't have control over the application code.

samskivert avatar Oct 23 '18 18:10 samskivert

That is what I had in mind. Having the app do this is not a problem. The params for LaunchUtil.updateVersionAndRelaunch will require a little testing (and possibly planning as the newVersion param may not be known) to come up with, but, I think this will work. I will give it a try.

neuharthr avatar Oct 24 '18 05:10 neuharthr