Automatically build your project via the command line
To automate running your tests, you also want to build your project automatically.
The Game Conductor Unity SDK allows you to do so via the
-executeMethod option provided by Unity.
To build your project from the command line, you need to:
- Integrate the Game Conductor Unity SDK into your project
- Locate the Unity executable (you can find more information on Unity's documentation
Make sure the configuration is properly setup
The SDK relies on the
GCConfig.json file. It should be located in
Instead of editing it manually we recommend going through the dedicated panel first (see how to configure your build). After the config file is properly setup, you can run the command line.
To build your project from the command line:
Unity.exe -quit -batchmode -logfile output.txt -projectPath <path/to/project> -executeMethod GameConductor.Builder.GCBuilder.BuildProject
Once the project is successfuly built, it should be available in the directory stated in the config file.