diff --git a/Assets/VRM/Editor/VRMExportUnityPackage.cs b/Assets/VRM/Editor/VRMExportUnityPackage.cs index a1061eb99d..07f335620d 100644 --- a/Assets/VRM/Editor/VRMExportUnityPackage.cs +++ b/Assets/VRM/Editor/VRMExportUnityPackage.cs @@ -134,6 +134,26 @@ static void CreateUnityPackageWithoutBuild() CreateUnityPackages(folder); } + /// + /// This is call from Jenkins build + /// + /// -quit -batchMode -executeMethod VRM.DevOnly.PackageExporter.VRMExportUnityPackage.CreateUnityPackageWithBuild + /// + 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;