Skip to content

Commit 6638022

Browse files
committed
Add hack to allow upgrade script to succeed with unity-builder v3
1 parent 13af3a2 commit 6638022

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Assets/Scripts/Editor/UnityPackageScripts.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,20 @@ private static void EndUpdate(int returnValue)
232232

233233
if (Application.isBatchMode)
234234
{
235+
// Hack for unity-builder v3, since it is expecting a build result output
236+
Console.WriteLine(
237+
$"{Environment.NewLine}" +
238+
$"###########################{Environment.NewLine}" +
239+
$"# Build results #{Environment.NewLine}" +
240+
$"###########################{Environment.NewLine}" +
241+
$"{Environment.NewLine}" +
242+
$"Duration: 0{Environment.NewLine}" +
243+
$"Warnings: 0{Environment.NewLine}" +
244+
$"Errors: 0{Environment.NewLine}" +
245+
$"Size: 0 bytes{Environment.NewLine}" +
246+
$"{Environment.NewLine}"
247+
);
248+
235249
EditorApplication.Exit(returnValue);
236250
}
237251
else

0 commit comments

Comments
 (0)