I am trying to integrate unity build into Jenkins and it is frustrating me to no end.
On Gui, I go into File → Build Settings → Select “Secens in Build” → Click “Build”
On CMD, invoke Unity.exe with -batchmode -projectPath <C:/myProjectPath> -executeMethod -quit
Why do I need to write a script file for cmdline when the gui does everything without a script?
Surely you can just add target flag then point to .unity file
Surely automated building isn’t a new problem and I can’t be the only one to run into this.
Please streamline your build unity.
Command line has a ton of options because people wanted them. Removing features because one person is finding them too complex is not a valid reason. If you want a streamlined build either use the UI or learn to use the command line as it’s intended.
I think OP meant that there are no command-line arguments to specify things like scenes to export etc. and instead has to rely on creating static methods to do what he needs.