getdown
getdown copied to clipboard
Scheduled check and update feature
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.
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.
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.