Ejemplo n.º 1
0
 static BuildPipeLine_CI()
 {
     //初始化编辑器
     BDFrameEditorLife.InitBDEditorLife();
     //
     outputPath = Application.streamingAssetsPath;
 }
Ejemplo n.º 2
0
 static BuildPipeLine_CI()
 {
     //初始化编辑器
     BDFrameEditorLife.InitEditorFrame();
     //
     outputPath = BDApplication.ProjectRoot + "/CI_TEMP";
     if (!Directory.Exists(outputPath))
     {
         Directory.CreateDirectory(outputPath);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 资源导入监听
        /// </summary>
        /// <param name="importedAssets"></param>
        /// <param name="deletedAssets"></param>
        /// <param name="movedAssets"></param>
        /// <param name="movedFromAssetPaths"></param>
        static void OnPostprocessAllAssets(string[] importedAssets,
                                           string[] deletedAssets,
                                           string[] movedAssets,
                                           string[] movedFromAssetPaths)
        {
            CacheData = new BDAssetImpoterCache();
            //1.搜集热更脚本变更
            foreach (string str in importedAssets)
            {
                if (str.Contains("@hotfix") && str.EndsWith(".cs"))
                {
                    CacheData.HotfixList.Add(str);
                }
            }
            foreach (string str in movedAssets)
            {
                if (str.Contains("@hotfix") && str.EndsWith(".cs"))
                {
                    CacheData.HotfixList.Add(str);
                }
            }
            FileHelper.WriteAllText(ImporterCahcePath, JsonMapper.ToJson(CacheData));

            //2.判断是否导入Odin
            foreach (string str in importedAssets)
            {
                if (str.Contains("Sirenix.OdinInspector.Attributes.dll"))
                {
                    var path = AssetDatabase.GUIDToAssetPath("b072c123447549fa81bb03f3ddebec80");
                    if (File.Exists(path))
                    {
                        AssetDatabase.DeleteAsset(path);
                    }
                    break;
                }
            }
            //编译dll
            BDFrameEditorLife.BuildHotfixDll();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 初始化BDFrame
 /// </summary>
 public static void InitBDFrame()
 {
     BDFrameEditorLife.InitBDEditorLife();
 }
 static EditorBuildPackage()
 {
     //初始化框架编辑器下
     BDFrameEditorLife.InitBDEditorLife();
 }