![]() ![]() If you did everything correctlly, this will create a jar file in the build/libs directory that can be run on both Android and desktop. For example, if you have 30.0.1 installed, that would be $ANDROID_HOME/build-tools/30.0.1. Add a build-tools folder to your PATH.Make sure you have API level 30 installed, as well as any recent version of build tools (e.g.Download the Android SDK, unzip it and set the ANDROID_HOME environment variable to its location.This version should work both on Android and Desktop.īuilding locally takes more time to set up, but shouldn’t be a problem if you’ve done Android development before. This will download a zipped jar – not the jar file itself ! Unzip this file and import the jar contained within in Mindustry. Click the download link (should be the name of your repo).If it completed successfully, there should be a download link under the “Artifacts” section. ![]() Select the most recent commit in the list. Check the “Actions” tab on your repository page.Perform any modifications necessary, then commit and push. Make a Github repository with your mod name, and upload the contents of this repo to it.To get a jar file that works for every platform, do the following: This requires a Github repository, for obvious reasons. This repository is set up with Github Actions CI to automatically build the mod for you every commit. You can either let Github Actions handle this, or set it up yourself. To build an Android-compatible version, you need the Android SDK. Only use this version for testing on desktop. Your mod jar will be in the build/libs directory.If you already have any version of the JDK >= 8, that works as well. This is equivalent to the Java version, except in Kotlin. A Kotlin Mindustry mod that works on Android and PC. ![]()
0 Comments
Leave a Reply. |