Search Unity

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

Discussion in 'Linux' started by adaniels4, Oct 12, 2015.

  1. adaniels4

    adaniels4

    Joined:
    Feb 16, 2014
    Posts:
    1
    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?
     
    Ben-BearFish likes this.
  2. DarkArts-Studios

    DarkArts-Studios

    Joined:
    May 2, 2013
    Posts:
    389
    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 :)
     
  3. Ben-BearFish

    Ben-BearFish

    Joined:
    Sep 6, 2011
    Posts:
    1,204
    @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.