更新鸿蒙打包配置

main
Yurui 2026-04-10 19:28:59 +08:00
parent 2537ca6ce9
commit 42e1e287ff
2 changed files with 5 additions and 1 deletions

View File

@ -338,6 +338,8 @@ internal class BatchBuild
return PlayerSettings.iOS.buildNumber;
#elif UNITY_ANDROID
return PlayerSettings.Android.bundleVersionCode.ToString();
#elif UNITY_OPENHARMONY
return PlayerSettings.OpenHarmony.bundleVersionCode.ToString();
#else
return "";
#endif
@ -786,6 +788,8 @@ internal class BatchBuild
PlayerSettings.iOS.buildNumber = config.BuildCode.ToString();
#elif UNITY_ANDROID
PlayerSettings.Android.bundleVersionCode = config.BuildCode;
#elif UNITY_OPENHARMONY
PlayerSettings.OpenHarmony.bundleVersionCode = config.BuildCode;
#endif
}

@ -1 +1 @@
Subproject commit 1ed625a91f45b3c814d1059f256b5950305e172d
Subproject commit 1d5ba0ee757223d0e48fb964efc59fb99999b6d4