Skip to content

Commit

Permalink
Merge pull request #1145 from ousttrue/fix/batch_build
Browse files Browse the repository at this point in the history
restore CreateUnityPackageWithBuild
  • Loading branch information
PoChang007 authored Aug 12, 2021
2 parents 593ba05 + 054453c commit a3d2f05
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Assets/VRM/Editor/VRMExportUnityPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,26 @@ static void CreateUnityPackageWithoutBuild()
CreateUnityPackages(folder);
}

/// <summary>
/// This is call from Jenkins build
///
/// -quit -batchMode -executeMethod VRM.DevOnly.PackageExporter.VRMExportUnityPackage.CreateUnityPackageWithBuild
/// </summary>
public static void CreateUnityPackageWithBuild()
{
var folder = GetProjectRoot();
if (!Directory.Exists(folder))
{
Directory.CreateDirectory(folder);
}

if (!BuildTestScene())
{
Debug.LogError("Failed to build test scenes");
}
CreateUnityPackages(folder);
}

public class GlobList
{
public readonly string[] Files;
Expand Down

0 comments on commit a3d2f05

Please sign in to comment.