Building StarMade from source
This page is intended for developers who have access to the StarMade source repository. If you are looking for general instructions on how to mod StarMade, see the modding basics page.
Most players don’t have access to the upstream StarMade source repository, so these instructions are only useful for internal development and contributors.
Prerequisites
Java
Release branch: Java 8 (development uses Java 8 but the release branch is built for Java 7 compatibility; set your IDE language level accordingly). Download: https://adoptium.net/temurin/releases/?os=any&arch=any&version=8
Universe Update branch: Java 23. Download: https://adoptium.net/temurin/releases/?os=any&arch=any&version=23
Build tool
Release branch: Apache Ant — https://ant.apache.org/bindownload.cgi
Universe Update branch: Gradle — https://gradle.org/install/
IDE
IntelliJ IDEA (Community or Ultimate) recommended: https://www.jetbrains.com/idea/download/
Building the release branch
Clone the repository and check out the
releasebranch:# example (Windows PowerShell) git clone <repo-url> cd <repo-name> git checkout release
Copy the example environment file and populate required values (if present):
Copy-Item -Path scripts\.env_example -Destination .env # then edit .env to set required variables
Run the platform-specific build script from the
scriptsfolder.Windows (PowerShell):
scripts\build_windows.ps1
Linux (bash):
scripts/build_linux.sh
macOS (bash):
scripts/build_macos.sh
Building the Universe Update branch
Clone the repository and check out the
masterbranch (or the branch used for the Universe Update):git clone <repo-url> cd <repo-name> git checkout master
Build using Gradle from the repository root:
gradle build