Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.49 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.49 KB

GitHubUpdater

This code is an update version of gravitylow updater design for GitHub instead of BukkitDev This updater is for bukkit developers who want to publish there plugin on GitHub!

##How it works ? The GitHubUpdater will:

  • check your release repository for new version. This mean that you should update your release on GitHub.
  • download the new release to the update folder, so it will be installed on the next restart.

##How to use it: If you are using Maven to manage your project you can use my Maven repository to get the dependency.
To do this, edit your pom.xml to add the following repository:

        <!-- hexosse repository -->
        <repository>
            <id>kexosse-repo</id>
            <url>https://raw.github.com/hexosse/maven-repo/master/</url>
        </repository>

Then, add the following dependency:

        <!--hexosse GitHubUpdater-->
        <dependency>
            <groupId>com.github.hexosse</groupId>
            <artifactId>GitHubUpdater</artifactId>
            <version>1.0.5</version>
        </dependency>

Otherwise, download the source code for GitHubUpdater. Simply place this somewhere within your plugin's packages.

##How to run the updater : You just need one line of code to run GitHubUpdater :

GitHubUpdater updater = new GitHubUpdater(this, this.repository, this.getFile(), GitHubUpdater.UpdateType.DEFAULT, true);