Skip to content

Commit

Permalink
testing focusing modification for #133, add comment about nographics …
Browse files Browse the repository at this point in the history
…for batch build
  • Loading branch information
unitycoder committed Nov 24, 2023
1 parent cd64f07 commit e98ed72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UnityLauncherPro/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,10 +1148,10 @@ private void BtnUpgradeProject_Click(object sender, RoutedEventArgs e)

private void GridRecent_Loaded(object sender, RoutedEventArgs e)
{
Tools.SetFocusToGrid(gridRecent);
// if coming from explorer launch, and missing unity version, projectsource is still null?
if (projectsSource != null) SetStatus("Ready (" + projectsSource.Count + " projects)");
RefreshSorting();
Tools.SetFocusToGrid(gridRecent);
}

void RefreshSorting()
Expand Down
1 change: 1 addition & 0 deletions UnityLauncherPro/Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ static string[] GetScenes()

// create commandline string for building and launch it
//var buildcmd = $"\"{unityExePath}\" -quit -batchmode -nographics -projectPath \"{proj.Path}\" -executeMethod \"Builder.BuildAndroid\" -buildTarget android -logFile -";
// TODO test without nographics : https://forum.unity.com/threads/batch-build-one-scene-is-black-works-in-normal-file-build.1282823/#post-9456524
var buildParams = $" -quit -batchmode -nographics -projectPath \"{proj.Path}\" -executeMethod \"UnityLauncherProTools.Build{platform}\" -buildTarget {platform} -logFile \"{outputFolder}/../build.log\"";
Console.WriteLine("buildcmd= " + buildParams);

Expand Down

0 comments on commit e98ed72

Please sign in to comment.