32 lines
962 B
C#
32 lines
962 B
C#
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";
|
||
}
|
||
}
|