using System.IO;
using UnityEngine;

public class AppBuildHelper
{
//    public static void SetBuildNumber()
//    {
//        string file = Application.dataPath + "/Resources/buildNumber.txt";
//        int build = GameInfo.GetBuild(BuildType.Alpha);
//        string content = "build:" + build;

//        UnityEditor.PlayerSettings.Android.bundleVersionCode = build;
//        UnityEditor.PlayerSettings.iOS.buildNumber = build.ToString();

//        File.WriteAllText(file, content);
//        GameDebug.Log("生成新的build号：" + build);
//#if UNITY_EDITOR
//        UnityEditor.AssetDatabase.Refresh();
//#endif
//    }
}