| | |
| | | Directory.CreateDirectory(directory);
|
| | | }
|
| | |
|
| | | var relativePath = FileExtersion.GetFileRelativePath(_assetBundlePath, item.FullName);
|
| | | var to = StringUtility.Contact(ResourcesPath.Instance.StreamingAssetPath, relativePath);
|
| | | #if UNITY_ANDROID
|
| | | var extension = Path.GetExtension(item.FullName);
|
| | | if (extension == ".meta")
|
| | | {
|
| | | continue;
|
| | | }
|
| | |
|
| | | to = to + ".7z";
|
| | | SevenZipUtility.Compress(item.FullName, to);
|
| | | UnityEditor.EditorUtility.DisplayProgressBar("正在压缩资源", item.Name, (float)completeCount / totalCount);
|
| | | #elif UNITY_IOS
|
| | | var relativePath = FileExtersion.GetFileRelativePath(_assetBundlePath, item.FullName);
|
| | | var to = StringUtility.Contact(ResourcesPath.Instance.StreamingAssetPath, relativePath);
|
| | | File.Copy(item.FullName,to,true);
|
| | | #endif
|
| | |
|
| | | completeCount++;
|
| | | }
|
| | |
|