mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Bump version to 4.3-beta.1
Add status_version to version.py Update Engine.xml example for get_godot_compatible_version_info
This commit is contained in:
@@ -185,6 +185,7 @@ def version_info_builder(target, source, env):
|
||||
#define VERSION_MINOR {minor}
|
||||
#define VERSION_PATCH {patch}
|
||||
#define VERSION_STATUS "{status}"
|
||||
#define VERSION_STATUS_VERSION {status_version}
|
||||
#define VERSION_BUILD "{build}"
|
||||
#define VERSION_MODULE_CONFIG "{module_config}"
|
||||
#define VERSION_WEBSITE "{website}"
|
||||
|
||||
@@ -126,6 +126,8 @@ Dictionary Engine::get_version_info() const {
|
||||
dict["status"] = VERSION_STATUS;
|
||||
dict["build"] = VERSION_BUILD;
|
||||
|
||||
dict["status_version"] = dict["status"] != "stable" ? VERSION_STATUS_VERSION : 0;
|
||||
|
||||
String hash = String(VERSION_HASH);
|
||||
dict["hash"] = hash.is_empty() ? String("unknown") : hash;
|
||||
|
||||
@@ -135,7 +137,13 @@ Dictionary Engine::get_version_info() const {
|
||||
if ((int)dict["patch"] != 0) {
|
||||
stringver += "." + String(dict["patch"]);
|
||||
}
|
||||
stringver += "-" + String(dict["status"]) + " (" + String(dict["build"]) + ")";
|
||||
stringver += "-" + String(dict["status"]);
|
||||
|
||||
if ((int)dict["status_version"] != 0) {
|
||||
stringver += "." + String(dict["status_version"]);
|
||||
}
|
||||
|
||||
stringver += " (" + String(dict["build"]) + ")";
|
||||
dict["string"] = stringver;
|
||||
|
||||
return dict;
|
||||
|
||||
Reference in New Issue
Block a user