|
@@ -9,6 +9,7 @@ namespace VEngine.Editor.Builds
|
|
|
public class BuildTask
|
|
|
{
|
|
|
private readonly string[] EXCLUDE_EXTS = new string[] { ".meta" };
|
|
|
+ private readonly string[] EXCLUDE_DIRS = new string[] { "Assets/Res/.svn" };
|
|
|
private readonly BuildAssetBundleOptions buildAssetBundleOptions;
|
|
|
private readonly List<Asset> bundledAssets = new List<Asset>();
|
|
|
private readonly string bundleExtension;
|
|
@@ -89,7 +90,9 @@ namespace VEngine.Editor.Builds
|
|
|
var path = Path.Combine(Application.dataPath, resRootDirName);
|
|
|
var buildSetting = GFGEditor.BuildSetting.GetBuildSetting();
|
|
|
var dirBundleList = buildSetting.dirBundleList;
|
|
|
- GFGEditor.FileUtil.ForeachFileInDir(path, dirBundleList, (string file) =>
|
|
|
+ var excludeDirs = buildSetting.dirBundleList.GetRange(0, buildSetting.dirBundleList.Count);
|
|
|
+ excludeDirs.AddRange(EXCLUDE_DIRS);
|
|
|
+ GFGEditor.FileUtil.ForeachFileInDir(path, excludeDirs, (string file) =>
|
|
|
{
|
|
|
var ext = Path.GetExtension(file);
|
|
|
if (Array.IndexOf(EXCLUDE_EXTS, ext) < 0)
|