BuildConfig.Settings.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. namespace XGame.Editor.Build
  2. {
  3. public partial class BuildConfig
  4. {
  5. public struct ProjectSettings
  6. {
  7. public string projectId;
  8. public string productName;
  9. public string applicationIdentifier;
  10. public string bundleVersion;
  11. public string versionCode;
  12. public string assetVersionName;
  13. public int assetVersionCode;
  14. /// <summary>
  15. /// 忽略生成ilrt代码
  16. /// </summary>
  17. public bool isIgnoreGenIlrt;
  18. /// <summary>
  19. /// 输出目录
  20. /// </summary>
  21. public string outputPath;
  22. [System.Obsolete]
  23. /// <summary>
  24. /// 是否强制重构Assetbundle
  25. /// sbp推荐每次打包都是全量打包
  26. /// </summary>
  27. public bool isForceRebuildAB;
  28. /// <summary>
  29. /// 打包完是否保存 *.SpriteAtlas
  30. /// 打包默认删除
  31. /// 避免因为*.SpriteAtlas残留导致文件夹guid变化
  32. /// </summary>
  33. public bool isSaveSpriteAtlas;
  34. }
  35. public struct GitSettings
  36. {
  37. /// <summary>
  38. /// git操作使用的token
  39. /// </summary>
  40. [System.Obsolete]
  41. public string gitToken;
  42. /// <summary>
  43. /// 仓库地址(/分割后拿最后一个作为项目名)
  44. /// </summary>
  45. public string gitAddress;
  46. /// <summary>
  47. /// 分支
  48. /// </summary>
  49. public string branch;
  50. /// <summary>
  51. /// git的commitHash值
  52. /// </summary>
  53. public string commitHash;
  54. }
  55. public struct EditorSettings
  56. {
  57. /// <summary>
  58. /// 打完包自动打开文件夹
  59. /// </summary>
  60. public bool autoExplorer;
  61. /// <summary>
  62. /// 打包结束后自动退出Unity
  63. /// </summary>
  64. public bool autoExit;
  65. /// <summary>
  66. /// 是否是本地打包
  67. /// </summary>
  68. public bool isNative;
  69. }
  70. public struct AndroidSettings
  71. {
  72. /// <summary>
  73. /// Android有效
  74. /// </summary>
  75. public AndroidArchitecture architecture;
  76. /// <summary>
  77. /// 是否导出Android工程
  78. /// </summary>
  79. public bool exportAsGoogleAndroidProject;
  80. /// <summary>
  81. /// 是否分离二进制资源
  82. /// 分离obb资源包,Unity国际版才能使用
  83. /// </summary>
  84. [System.Obsolete("已废弃")]
  85. public bool splitApplicationBinary;
  86. }
  87. /// <summary>
  88. /// 预留
  89. /// </summary>
  90. public struct IOSSettings
  91. {
  92. }
  93. }
  94. }