BuildErrorCode.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. namespace XGame.Editor.Build
  2. {
  3. /// <summary>
  4. /// 部分枚举值保持和UnityEditor.Build.Reporting.BuildResult一致
  5. /// </summary>
  6. public enum BuildErrorCode
  7. {
  8. /// <summary>
  9. /// Unity BuildPlayer 专用,自定义Command禁止使用
  10. /// <para>Indicates that the outcome of the build is in an unknown state.</para>
  11. /// </summary>
  12. Unknown,
  13. /// <summary>
  14. /// Unity BuildPlayer 专用,自定义Command禁止使用
  15. /// <para>Indicates that the build completed successfully.</para>
  16. /// </summary>
  17. Succeeded,
  18. /// <summary>
  19. /// Unity BuildPlayer 专用,自定义Command禁止使用
  20. /// <para>Indicates that the build failed.</para>
  21. /// </summary>
  22. Failed,
  23. /// <summary>
  24. /// Unity BuildPlayer 专用,自定义Command禁止使用
  25. /// <para>Indicates that the build was cancelled by the user.</para>
  26. /// </summary>
  27. Cancelled,
  28. #region 自定义Command错误码,初始值从1000起
  29. /// <summary>
  30. /// 自定义Command执行完成
  31. /// </summary>
  32. CmdCompleted = 999999,
  33. /// <summary>
  34. /// 打包配置文件丢失
  35. /// </summary>
  36. ConfigFileMissing = 1000,
  37. /// <summary>
  38. /// 输出路径无效
  39. /// </summary>
  40. OutputPathInvalid,
  41. /// <summary>
  42. /// 打包命令无效
  43. /// </summary>
  44. CommandExecuteFailed,
  45. /// <summary>
  46. /// 打包AB文件失败
  47. /// </summary>
  48. BuildAssetBundleFailed,
  49. /// <summary>
  50. /// 分布式打包AB主节点失败
  51. /// </summary>
  52. DistributedMainNodeFailed,
  53. /// <summary>
  54. /// 分布式打包子节点失败
  55. /// </summary>
  56. DistributedChildNodeFailed,
  57. /// <summary>
  58. /// 序列化配置信息失败
  59. /// </summary>
  60. SerializeConfigsFailed,
  61. /// <summary>
  62. /// 场景列表为空
  63. /// </summary>
  64. NoActiveScene,
  65. /// <summary>
  66. /// Version名不符合规范
  67. /// </summary>
  68. BundleVersionFailure,
  69. /// <summary>
  70. /// i18n转换Key失败
  71. /// </summary>
  72. I18NSwapKeyFailed,
  73. /// <summary>
  74. /// 生成配置初始化失败
  75. /// </summary>
  76. GenPackageConfigsInitFailed,
  77. /// <summary>
  78. /// 生成配置失败
  79. /// </summary>
  80. GenPackageConfigsFailed,
  81. /// <summary>
  82. /// 拷贝资源失败
  83. /// </summary>
  84. CopyAssetsFailed,
  85. /// 打包后处理错误
  86. /// </summary>
  87. BuildPostProcessorError,
  88. /// <summary>
  89. /// Command未知错误
  90. /// </summary>
  91. CmdUnknownError,
  92. /// <summary>
  93. /// 自定义Command通用错误码
  94. /// </summary>
  95. CmdCustomError,
  96. /// <summary>
  97. /// 脚本编译失败
  98. /// </summary>
  99. CompileFailed = 2000,
  100. /// <summary>
  101. /// Unity编译时拷贝Assembly失败
  102. /// 该错误需要打包机重启一次Unity尝试二次打包
  103. /// </summary>
  104. CopyAssemblyFailed = 2001,
  105. /// <summary>
  106. /// 构建hybridclr
  107. /// </summary>
  108. BuildHybridclrError,
  109. /// <summary>
  110. /// 编译iOS特殊il2cpp
  111. /// </summary>
  112. CompileIl2CppForHybridclrError,
  113. /// <summary>
  114. /// 加密global-metadata.dat失败
  115. /// </summary>
  116. EncryptGlobalMetadataError,
  117. #endregion
  118. }
  119. }