Merge pull request #77453 from m4gr3d/update_alpha_status_code_main

Update the format for the app version code and name
This commit is contained in:
Rémi Verschelde 2023-05-25 09:25:46 +02:00
commit d81b4a4414
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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