打开获取版本

This commit is contained in:
2025-06-12 12:03:00 +08:00
parent b6cd011714
commit d60d2ed5c3
5 changed files with 51 additions and 10 deletions

View File

@@ -132,24 +132,28 @@ namespace Stary.Evo.Editor
public string GetBuildPackageVersion(bool isUpdate = false)
{
string version = "";
if (environmentType == EnvironmentType.Debug)
{
return "Simulate";
EditorUtility.SetDirty(this);
AssetDatabase.SaveAssets();
version= "Simulate";
}
if (environmentType == EnvironmentType.Release)
{
string version =
version =
$"{packageVersionX}.{packageVersionY}.{packageVersionZ}";
if (isUpdate)
packageVersionZ++;
packageVersion = $"{packageVersionX}.{packageVersionY}.{packageVersionZ}";
return version;
}
return null;
EditorUtility.SetDirty(this);
AssetDatabase.SaveAssets();
return version;
}
public void GetPackageVersion()