Skip to content

Commit

Permalink
CustomBuildTool do defgen in local release build
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jan 21, 2025
1 parent 78a119a commit af22231
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tools/CustomBuildTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,19 @@ public static void Main(string[] args)
{
Build.SetupBuildEnvironment(true);

if (!Build.BuildSolution("SystemInformer.sln", BuildFlags.Release))
return;
if (!Build.BuildSolution("plugins\\Plugins.sln", BuildFlags.Release))
return;
try
{
Build.ExportDefinitions(true);

if (!Build.BuildSolution("SystemInformer.sln", BuildFlags.Release))
return;
if (!Build.BuildSolution("plugins\\Plugins.sln", BuildFlags.Release))
return;
}
finally
{
Build.ExportDefinitionsRevert();
}

if (!Build.CopyDebugEngineFiles(BuildFlags.Release))
Environment.Exit(1);
Expand Down

0 comments on commit af22231

Please sign in to comment.