void OnEnable()
        {
            var button = new Button(() =>
            {
                var context = new PackageExportContext("PackageExport", "Assets/Plugins/StansAssets/Test")
                {
                    AddPackageVersionPostfix = true
                };

                PackageExporter.Export("com.stansassets.package-export", context);
            });

            button.text = "Export";
            rootVisualElement.Add(button);
        }
        /// <summary>
        /// Export package as <c>.unitypackage</c>
        /// </summary>
        /// <param name="packageName">Package name. For example: <c>com.stansassets.package-export</c>. </param>
        /// <param name="context">Package export context. See <see cref="PackageExportContext"/> for details.</param>
        public static void Export(string packageName, PackageExportContext context)
        {
            Debug.Log(packageName);
            if (s_ActiveSearchRequest != null)
            {
                throw new InvalidOperationException("Another export in progress");
            }

            var packageInfo = PackageManagerUtility.GetPackageInfo(packageName);

            Debug.Log(packageInfo.assetPath);

            AssetDatabase.CopyAsset(packageInfo.assetPath + "/Test/test1.json", "Assets/test1.json");
            //AssetDatabase.Refresh();
            AssetDatabase.ExportPackage("Assets/test1.json", "my_export.unitypackage", ExportPackageOptions.Default);
            AssetDatabase.DeleteAsset("Assets/test1.json");

            /*
             * s_ExportDestination = destination;
             * s_ActiveSearchRequest =  Client.Search(packageName, true);
             * EditorApplication.update += OnEditorApplication;*/
        }