https://github.com/Anuken/Mindustry Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Anuken / Mindustry Public * Notifications You must be signed in to change notification settings * Fork 2.9k * Star 22.3k The automation tower defense RTS mindustrygame.github.io License GPL-3.0 license 22.3k stars 2.9k forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 14 * Pull requests 201 * Actions * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Security * Insights Anuken/Mindustry This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 18,085 Commits .github .github android android annotations annotations core core desktop desktop fastlane fastlane gradle/wrapper gradle/wrapper ios ios server server tests tests tools tools .gitignore .gitignore CONTRIBUTING.md CONTRIBUTING.md ISSUES.md ISSUES.md LICENSE LICENSE README.md README.md SERVERLIST.md SERVERLIST.md TRANSLATING.md TRANSLATING.md build.gradle build.gradle gradle.properties gradle.properties gradlew gradlew gradlew.bat gradlew.bat jitpack.yml jitpack.yml servers_be.json servers_be.json servers_v6.json servers_v6.json servers_v7.json servers_v7.json settings.gradle settings.gradle View all files Repository files navigation * README * GPL-3.0 license Logo Build Status Discord The automation tower defense RTS, written in Java. Trello Board Wiki Javadoc Contributing See CONTRIBUTING. Building Bleeding-edge builds are generated automatically for every commit. You can see them here. If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands: Windows Running: gradlew desktop:run Building: gradlew desktop:dist Sprite Packing: gradlew tools:pack Linux/Mac OS Running: ./gradlew desktop:run Building: ./gradlew desktop:dist Sprite Packing: ./gradlew tools:pack Server Server builds are bundled with each released build (in Releases). If you'd rather compile on your own, replace 'desktop' with 'server', e.g. gradlew server:dist. Android 1. Install the Android SDK here. Make sure you're downloading the "Command line tools only", as Android Studio is not required. 2. In the unzipped Android SDK folder, find the cmdline-tools directory. Then create a folder inside of it called latest and put all of its contents into the newly created folder. 3. In the same directory run the command sdkmanager --licenses (or . /sdkmanager --licenses if on linux/mac) 4. Set the ANDROID_HOME environment variable to point to your unzipped Android SDK directory. 5. Enable developer mode on your device/emulator. If you are on testing on a phone you can follow these instructions, otherwise you need to google how to enable your emulator's developer mode specifically. 6. Run gradlew android:assembleDebug (or ./gradlew if on linux/mac). This will create an unsigned APK in android/build/outputs/apk. To debug the application on a connected device/emulator, run gradlew android:installDebug android:run. Troubleshooting Permission Denied If the terminal returns Permission denied or Command not found on Mac /Linux, run chmod +x ./gradlew before running ./gradlew. This is a one-time procedure. --------------------------------------------------------------------- Gradle may take up to several minutes to download files. Be patient. After building, the output .JAR file should be in /desktop/build/libs /Mindustry.jar for desktop builds, and in /server/build/libs/ server-release.jar for server builds. Feature Requests Post feature requests and feedback here. Downloads [6874747073] [6874747073] [6874747073] [6874747073] About The automation tower defense RTS mindustrygame.github.io Topics android game java desktop tower-defense mobile-game multiplatform rts sandbox-game mindustry Resources Readme License GPL-3.0 license Activity Stars 22.3k stars Watchers 550 watching Forks 2.9k forks Report repository Releases 160 7.0 Build 146 Latest Sep 4, 2023 + 159 releases Contributors 616 * * * * * * * * * * * * * * + 602 contributors Languages * Java 99.4% * Other 0.6% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.