1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Update the format for the app version code and name

This commit is contained in:
Fredia Huya-Kouadio
2023-05-24 14:40:37 -07:00
parent 68c507f59b
commit 3bef5f29ec

View File

@@ -132,14 +132,16 @@ ext.generateGodotLibraryVersion = { List<String> requiredKeys ->
String statusValue = map["status"] String statusValue = map["status"]
if (statusValue == null) { if (statusValue == null) {
statusCode = 0 statusCode = 0
} else if (statusValue.startsWith("alpha") || statusValue.startsWith("dev")) { } else if (statusValue.startsWith("dev")) {
statusCode = 1 statusCode = 1
} else if (statusValue.startsWith("beta")) { } else if (statusValue.startsWith("alpha")) {
statusCode = 2 statusCode = 2
} else if (statusValue.startsWith("rc")) { } else if (statusValue.startsWith("beta")) {
statusCode = 3 statusCode = 3
} else if (statusValue.startsWith("stable")) { } else if (statusValue.startsWith("rc")) {
statusCode = 4 statusCode = 4
} else if (statusValue.startsWith("stable")) {
statusCode = 5
} else { } else {
statusCode = 0 statusCode = 0
} }