Initial commit

This commit is contained in:
Sharlotte
2021-05-04 15:06:09 +09:00
commit 75a262d240
14 changed files with 459 additions and 0 deletions

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
# Mindustry Mod Template
A blank template for Mindustry mods with an existing Gradle configuration to compile and dex-ify, and Github Actions to automatically do both and upload the artifacts.
## Compiling
JDK 8.\
Task `dexify` requires `d8` from Android `build-tools` > `28.0.1`.
Plain Jar is for JVMs (desktop).\
Dexed Jar is for for JVMs (desktop) and ARTs (Android).\
These two are separate in order to decrease size of mod download.
### Windows
Plain Jar: `gradlew build`\
Dexify Plain Jar: `gradlew dexify`\
Build Plain & Dexify Jar: `gradlew buildDex`
### *nix
Plain Jar: `./gradlew build`\
Dexify Plain Jar: `./gradlew dexify`\
Build Plain & Dexify Jar: `./gradlew buildDex`
## I have no idea what I'm doing with this
1. Rename directories in `src/` to avoid collisions with other mods that didn't.
2. Change `pGroup` in `gradle.properties` to match up with the new directories.
3. Update `main` in `assets/mod.json` to line up with renamed directories.
4. Refer to [Compiling](#compiling).