32 lines
962 B
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
namespace Thousandto.UpdateForm.Center
{
/// <summary>
/// 打包的时候动态修改这个文件设置app版本和分段版本
/// </summary>
public static class BuildVersion
{
/// <summary>
/// 包内app版本
/// </summary>
public static string AppVer
{
get
{
var textAsset = UnityEngine.Resources.Load<UnityEngine.TextAsset>("Config/LocalVersion");
if (textAsset != null)
{
string text = textAsset.text;
string tag = "<local_app_version>";
string verStrLine = text.Substring(text.IndexOf(tag) + tag.Length, "1.0.0".Length);
return verStrLine;
}
return "1.0.0";
}
}
/// <summary>
/// 分段版本
/// </summary>
public static string BaseVer = "1";
}
}