Skip to content

Commit

Permalink
Update README.md and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skykatik committed Jan 3, 2021
1 parent c8202f5 commit e855e14
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# AutoUpdater
A small jar-mod for Mindustry client/server.
A small jar-mod for Mindustry client/server.

## Installation
Download the latest release (`.jar`) [here](https://github.com/MindustryInside/AutoUpdater/releases/latest). <br>
Put `.jar` to one of these paths:
* Windows: `%AppData%/Mindustry/mods`
* Linux: `~/.local/share/Mindustry/mods`
* Server: `config/mods`

## Building
* Windows: `gradlew dist`
* Linux: `./gradlew dist`
After building, the `.jar` file should be located in build/libs/InsideBot.jar folder.

If the terminal returns Permission denied or Command not found, run `chmod +x ./gradlew`.

## Note
I can't compile a mobile version and test his.
6 changes: 1 addition & 5 deletions src/main/java/updater/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ public class Loader extends Mod{
public void init(){
buildDirectory = dataDirectory.child("release_builds/");

if(mobile){
Log.warn("AutoUpdater aren't support on mobile version");
}else{
updater = new Updater();
}
updater = new Updater();
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"author": "[#c1f9b6]Mindustry Inside",
"main": "updater.Loader",
"hidden": true,
"version": "0.1-alpha",
"minGameVersion": 115
"version": "0.2-alpha",
"minGameVersion": 120
}

0 comments on commit e855e14

Please sign in to comment.