private static void OnAfterBuildPlayerEvent(BuildTarget buildTarget, string str) { if (Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath())) { ResourcesSymbolLinkHelper.RemoveSymbolLinkResource(); } }
private static void OnBeforeBuildPlayerEvent() { // Auto Link resources when play! if (!Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath())) { Log.Warning("Auto Link Bundle Resources Path... {0}", ResourcesSymbolLinkHelper.GetABLinkPath()); ResourcesSymbolLinkHelper.SymbolLinkResource(); } }
private static void OnBeforeBuildPlayerEvent() { // Auto Link resources when play! //NOTE 打包ab时不link资源,在Editor可以从磁盘中直接读取 //if (!Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath())) { Log.Info("Auto Link Bundle Resources Path... {0}", ResourcesSymbolLinkHelper.GetABLinkPath()); ResourcesSymbolLinkHelper.SymbolLinkResource(); } }
private static void OnAfterBuildPlayerEvent(BuildTarget buildTarget, string pathToBuiltProject) { if (Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath())) { ResourcesSymbolLinkHelper.RemoveSymbolLinkResource(); } if (buildTarget == BuildTarget.Android) { if (!pathToBuiltProject.EndsWith(".apk")) { //android studio project: create gradle script Log.Info($"Android Studio工程导出完成,创建Gradle打包脚本到{pathToBuiltProject}"); KAutoBuilder.CreateGradleBatScript(pathToBuiltProject); } } }