From c906182af9803beb2154ae32f2767b95990377bc Mon Sep 17 00:00:00 2001 From: Junrou Nishida Date: Mon, 27 Mar 2023 22:54:28 +0900 Subject: [PATCH] fix: include MediaPipeUnity.framework in unitypackage --- Assets/MediaPipeUnity/Editor/PackageExporter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/MediaPipeUnity/Editor/PackageExporter.cs b/Assets/MediaPipeUnity/Editor/PackageExporter.cs index 48c942ad0..eb7563ac0 100644 --- a/Assets/MediaPipeUnity/Editor/PackageExporter.cs +++ b/Assets/MediaPipeUnity/Editor/PackageExporter.cs @@ -40,7 +40,8 @@ public static void Export() var fileName = string.IsNullOrEmpty(version) ? "MediaPipeUnity.unitypackage" : $"MediaPipeUnity.{version}.unitypackage"; var exportPath = "./" + fileName; - var pluginAssets = EnumerateAssets(Path.Combine("Packages", "com.github.homuler.mediapipe")); // export all the files + var pluginAssets = EnumerateAssets(Path.Combine("Packages", "com.github.homuler.mediapipe")) + .Append(Path.Combine("Packages", "com.github.homuler.mediapipe", "Runtime", "Plugins", "iOS", "MediaPipeUnity.framework")); var sampleAssets = EnumerateAssets(Path.Combine("Assets", "MediaPipeUnity", "Samples"), new string[] { ".cs", ".unity" }) .Where(x => Path.GetFileName(x) != "Start Scene.unity"); // exclude the 'Start Scene' var tutorialAssets = EnumerateAssets(Path.Combine("Assets", "MediaPipeUnity", "Tutorial")); // export all the files