[change] 打包时清空裁减aot dll目录
parent
5c750e9c02
commit
4da7c1a524
|
@ -1,3 +1,4 @@
|
||||||
|
using HybridCLR.Editor.Installer;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -13,7 +14,7 @@ using UnityEngine;
|
||||||
|
|
||||||
namespace HybridCLR.Editor.BuildProcessors
|
namespace HybridCLR.Editor.BuildProcessors
|
||||||
{
|
{
|
||||||
internal class CopyStrippedAOTAssemblies : IPostprocessBuildWithReport
|
internal class CopyStrippedAOTAssemblies : IPostprocessBuildWithReport, IPreprocessBuildWithReport
|
||||||
#if !UNITY_2021_1_OR_NEWER
|
#if !UNITY_2021_1_OR_NEWER
|
||||||
, IIl2CppProcessor
|
, IIl2CppProcessor
|
||||||
#endif
|
#endif
|
||||||
|
@ -95,5 +96,12 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnPreprocessBuild(BuildReport report)
|
||||||
|
{
|
||||||
|
BuildTarget target = EditorUserBuildSettings.activeBuildTarget;
|
||||||
|
var dstPath = SettingsUtil.GetAssembliesPostIl2CppStripDir(target);
|
||||||
|
BashUtil.RecreateDir(dstPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue