public int Build(Project project) { var helper = new UnityInstallationHelper(); var args = GetDefaultArgsBatch(project); var editorPath = helper.GetBestEditor(project.EditorVersion); return(Execute(editorPath, args)); }
public int Test(Project project) { var helper = new UnityInstallationHelper(); var args = GetDefaultArgsBatch(project, quit: false); if (!Args.RunTests) { args.Enqueue($"-runTests"); } var editorPath = helper.GetBestEditor(project.EditorVersion); return(Execute(editorPath, args)); }
public int Open(Project project) { var helper = new UnityInstallationHelper(); var args = new Queue <string>(Args); if (Args.ProjectPath is null) { args.Enqueue($"-projectPath"); args.Enqueue($"{project.Path}"); } var editorPath = helper.GetBestEditor(project.EditorVersion); return(Execute(editorPath, args)); }