Self updating applications
This allows me to "release" a version by creating a branch and then changing the RELEASE constant to point the name of the branch.Note: This is example code only, you should modify for security and stability of your enviroment.OS X users can only have one JRE available through web browsers so OS X users will only have JRE 8 available through the web browser after the upgrade On Windows, the auto-update process updates only the latest JRE on your system.Versions other than the latest will not be removed as there are cases in which a user, particularly enterprise users, would need more than one version of Java on their systems.After the End of Public Updates for Java 7 in April 2015, if you have a valid support contract for an Oracle Product that requires Java, or an Oracle Java SE Support contract, you can download the support versions of Java from My Oracle Support.Oracle will continue to provide updates for JRE 7 for our customers with support contracts after the End of Public Updates to JRE 7.It is possible for an application to specifiy the Java version required.If an application has left it up to the system on which it is running to determine which version to use, and you have JRE 7 and JRE 8, only JRE 8 will be used.
OS X users can only have one JRE available through web browsers so OS X users can not have more than one JRE available through the web browser and will only only have JRE 8 available through the web browser after the upgrade.
However, it is important to provide the option to update to any arbitrary release including tracking the master branch.
Use Pip and the To track major version updates some care must be taken in setting up the repository.
Note: I didn't include virtualenv support in this code but it is trivial to add.
Oracle started auto-updating Windows 32-bit and OS X, Java Runtime Environment (JRE) users from JRE 7 to JRE 8 in January 20, 2015.