Closed matshou closed 5 years ago
Excellent work, well done. Merged.
@Tyler799 You didn't read the whole thing:
Note: Do not merge this pull request, only review it. The commits should be squashed into master but I am not sure if this will close the related issues that are referenced by the commits in this pull request. This is important for our future auto-built changelog implementation. Read the following referenced issue for more information:
This is a Java application compiled into an executable Jar using Gradle and it's Shadow plugin. It is intended to help users stay up to date with the new guide releases. Here is exactly how it works:
windows cmd
into a new java console window, then terminates itself.MWSE
updater is present in the root directory and runs it. This way the user will update hisMWSE
build as well as the guide.mte-version.txt
located in themaster
repository branch and compares it's contents to that of the local version file provided in each release.FileUtils.contentEqual
method from theApache Commons IO
library.ProcessBuilder
and terminate. The uninstaller script will run in the background and wait for the Java application to exit before it deletes it. It will then proceed to delete itself (batch scripts can do this).Now we have all our files updated as well as a clean directory after the update is completed. I know this might be a bit of an over complicated solution to a simple problem of informing users that a markdown file has a new release, but this might serve as a framework for a more advanced application that manages your mod packages and ini tweaks later down the road.
I have supplied all updater files in this zip file: MTE-Release.zip.
Please extract them either to your MW root directory (preferably) or into a new empty directory and start the batch script. Give me your feedback and tell me what should change before it's properly released.
Thanks to @cpolera for helping setup the development environment and @DaelosTheCat for testing to make sure everything is in order. You guys have helped more then you think :smiley:
Resolves #45