打开获取版本
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user