Hello,
can someone pleas share info about Mac, LinuxUniversal and Android command line building through Unity.exe commandline interface?
Im able to build Win build, but Android cmd build isnt documented at all and Mac and Linux build behavior is annoying. Im able to construct building command, which isnt rejected by interface, build is not created and even didnt get any error message…
Here is official documentation for commandline arguments:
Example of my MacPlayer build command:
%UnityPath%\Unity.exe -batchMode -quit -nographics -projectPath %UnityProjectPath% -buildOSXUniversalPlayer “C:\temp\TargetBuildFolder”
I tried to some %variable% for targetbuildfolder instead hardcoded patch, but there is some bug, which cant parse this path and expecting macOSX like /path/xxx path in variable.
I dont know why, when i using LinuxUniversal, OSXuniversal (32+64bit),OSX64bit, Linux32 a LinuxUniversal(32+64) is failing everytime - without any error message…
SSX32bit works but only for some of valid path) and Linux64bit working by cmd, via GUI working everything.
I getting those strange messages during OSX32bit build:
Aborting batchmode due to failure:
Error building Player: IOException: Failed to Move File / Directory from ‘Temp/S
tagingArea/UnityPlayer.app’ to ‘C:/Temp/!XXXX20141206Mac/XXX.app’.
When i use XXX instead C:/Temp/!XXXX20141206Mac/XXX.app or C:/Temp/!XXXX20141206Mac/XXX its working, so i think that path parser have a bug.
I also wonder that exactly means -buildTarget parameter and how combine this parameter with others to successful build.
Im using unity 4.2, but commandline interface seems to be time same for all versions, at least in documentation isnt info about any differences.