From 054453ca6e83747c4f10b122906b345ff145260a Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 12 Aug 2021 17:15:44 +0900 Subject: [PATCH] restore CreateUnityPackageWithBuild --- Assets/VRM/Editor/VRMExportUnityPackage.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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;