Update the format for the app version code and name

(cherry picked from commit a041f96779)
This commit is contained in:
Fredia Huya-Kouadio 2023-06-29 16:03:21 +02:00 committed by Yuri Sizov
parent 531b22339a
commit d86aa32f8c
1 changed files with 6 additions and 4 deletions

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
}