示例#1
0
 private static void OnAfterBuildPlayerEvent(BuildTarget buildTarget, string str)
 {
     if (Directory.Exists(ResourcesSymbolLinkHelper.GetABLinkPath()))
     {
         ResourcesSymbolLinkHelper.RemoveSymbolLinkResource();
     }
 }
示例#2
0
 private static void OnBeforeBuildPlayerEvent()
 {
     // Auto Link resources when play!
     if (!Directory.Exists(ResourcesSymbolLinkHelper.GetLinkPath()))
     {
         Log.Warning("Auto Link Bundle Resources Path... {0}", ResourcesSymbolLinkHelper.GetLinkPath());
         ResourcesSymbolLinkHelper.SymbolLinkResource();
     }
 }
示例#3
0
 public static void SymbolLinkResource()
 {
     // Auto Link resources when play!
     if (!Directory.Exists(ResourcesSymbolLinkHelper.GetLinkPath()))
     {
         Log.Warning("Auto Link Bundle Resources Path... {0}", ResourcesSymbolLinkHelper.GetLinkPath());
         ResourcesSymbolLinkHelper.SymbolLinkResource();
     }
 }
示例#4
0
 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();
     }
 }
示例#5
0
        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);
                }
            }
        }