Added an automatic updater for new releases.
opsu! will now check for updates upon launching, and will prompt the user to download and run a newer version, if available. - The remote version file is just the filled "version" file, currently located in the gh-pages branch. - The new version is downloaded to the working directory, and launched with ProcessBuilder. Related changes: - Added "file" property (containing the download URL) to "version" file. - Added maven-artifact dependency for version comparisons. - Added methods in Downloads class to retrieve the constructor parameters. - Moved method for showing exit confirmation dialogs into UI. - Moved method for reading from URLs into Utils. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
BIN
res/bang.png
Normal file
BIN
res/bang.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 653 B |
@@ -1,2 +1,3 @@
|
||||
version=${pom.version}
|
||||
build.date=${timestamp}
|
||||
file=https://github.com/itdelatrisu/opsu/releases/download/${pom.version}/opsu-${pom.version}.jar
|
||||
build.date=${timestamp}
|
||||
Reference in New Issue
Block a user