2025-01-25 04:38:09 +08:00

32 lines
962 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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";
}
}