//将打包的版本文件拷贝到Resource目录下(用来与包外版本号对比用,发生未知错误时的判定)
        public static bool CopyVersionTxtToResourceDir()
        {
            string from = PackagePath.GetOutVersionFile();
            string to   = PackagePath.ResourceVersionFile;

            if (!File.Exists(from))
            {
                Debug.LogError("can not find version file:path=" + from);
                return(false);
            }
            EditorFileOperate.CopyTo(from, to, null);
            AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);
            return(true);
        }
        public static bool CopyABToStreamingAssetDir()
        {
            string from = PackagePath.GetOutAssetBundleDir();

            if (!Directory.Exists(from))
            {
                Debug.LogError("can not find ab dir:path =" + from);
                return(false);
            }
            string to = PackagePath.GetStreamingAssetABDir();

            EditorFileOperate.CopyTo(from, to, ".manifest");
            AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);
            return(true);
        }