Is it possible to build a Unity project via command line on a headless CentOS server?

So, I’ve managed to get Unity installed on the server, as well as xvfb since the -nographics option isn’t quite happy yet having no display.

I’ll test it out later tonight, but I’m thinking something like this would do the trick:
xvfb-run -a /opt/unity/Editor/Unity
-quit
-batchMode
-nographics
-logFile ~/project/unity-output.log
-projectPath ~/project/src/
-buildTarget win64
-buildWindows64Player ~/project/build/Project.exe

Anyone have any experience with this?

1 Like

I’ve been trying as well, albeit an Ubuntu headless without luck, many QT errors displayed even within xvfb. If you manage to succeed here please share :slight_smile:

@adaniels4 I’d be interested in the steps you took to get it working as well. I need to do the same for my company.