diff --git a/Assets/VRM/Editor/VRMExportUnityPackage.cs b/Assets/VRM/Editor/VRMExportUnityPackage.cs index 96372735c..a1061eb99 100644 --- a/Assets/VRM/Editor/VRMExportUnityPackage.cs +++ b/Assets/VRM/Editor/VRMExportUnityPackage.cs @@ -24,13 +24,6 @@ namespace VRM.DevOnly.PackageExporter public static class VRMExportUnityPackage { - const string DATE_FORMAT = "yyyyMMdd"; - - static string GetDesktop() - { - return Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "/VRM"; - } - static string GetProjectRoot() { return Path.GetFullPath(Application.dataPath + "/.."); @@ -141,26 +134,6 @@ namespace VRM.DevOnly.PackageExporter CreateUnityPackages(folder); } - 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 static void CreateUnityPackage() - { - CreateUnityPackages(Path.GetFullPath(Path.Combine(Application.dataPath, ".."))); - } - public class GlobList { public readonly string[] Files; @@ -198,21 +171,36 @@ namespace VRM.DevOnly.PackageExporter // UniVRM and sub packages { var packages = new[]{ - new PackageInfo("UniVRM") + new PackageInfo("UniVRM0X") { List = new []{ new GlobList("Assets/VRM"), new GlobList("Assets/VRMShaders"), - new GlobList("Assets/MeshUtility"), new GlobList("Assets/UniGLTF"), } }, - new PackageInfo("UniVRM-samples") + new PackageInfo("UniVRM0X-samples") { List = new[]{ new GlobList("Assets/VRM.Samples"), new GlobList("Assets/StreamingAssets/VRM.Samples"), } + }, + new PackageInfo("UniVRM10") + { + List = new []{ + new GlobList("Assets/VRM10"), + new GlobList("Assets/VRMShaders"), + new GlobList("Assets/UniGLTF"), + } + }, + new PackageInfo("UniVRM10-samples") + { + List = new[]{ + new GlobList("Assets/VRM10.Samples"), + new GlobList("Assets/UniGLTF.Samples"), // look dev resources + new GlobList("Assets/StreamingAssets/VRM.Samples"), + } } }; foreach (var package in packages)